Skip to content

Remove escapes before command names#127

Open
ferdnyc wants to merge 1 commit intopython-virtualenvwrapper:mainfrom
ferdnyc:no-escaped-cmds
Open

Remove escapes before command names#127
ferdnyc wants to merge 1 commit intopython-virtualenvwrapper:mainfrom
ferdnyc:no-escaped-cmds

Conversation

@ferdnyc
Copy link
Copy Markdown
Contributor

@ferdnyc ferdnyc commented May 6, 2026

In the early days of virtualenvwrapper.sh, some commands were prefixed with an escape character (e.g. \grep -E -v ...) as a way of attempting to defeat local aliases and other redefinitions. (See, e.g. commit c5433fe.)

But, the command and builtin metacommands are better ways of achieving that, and all of the commands in question have since been prefixed with the appropriate metacommand, making the escapes unnecessary. command \grep -E -v ... is just silly.

In the early days of `virtualenvwrapper.sh`, some commands were
prefixed with an escape character (e.g. `\grep -E -v ...`) as a
way of attempting to defeat local aliases and other redefinitions.
(See, e.g. commit c5433fe.)

But, the `command` and `builtin` metacommands are better ways of
achieving that, and all of the commands in question have since
been prefixed with the appropriate metacommand, making the escapes
unnecessary. `command \grep -E -v ...` is just silly.
Copy link
Copy Markdown
Contributor

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, looks good. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants