Issue #58 wontfix

More Alias Fun!

created an issue

I recently made an alias (I know, I know) of one of the commands in {{{ alias mkvirtualenv="mkvirtualenv --no-site-packages" }}}

Lo and behold it causes the following problems when trying to re-source the script: {{{ NullVoid ~: source -bash: /Library/Frameworks/Python.framework/Versions/2.6/bin/ line 192: syntax error near unexpected token (' -bash: /Library/Frameworks/Python.framework/Versions/2.6/bin/ line 192:mkvirtualenv () {'


I found a solution that should also make the code a little cleaner (now and in the future). Hopefully, it's worth a consideration. It involves using the shopt command. I included a patch.


Comments (3)

  1. Doug Hellmann repo owner

    It doesn't look like there is a clearly portable way to do this. I recommend naming aliases in a way that does not conflict with the existing functions.

  2. Log in to comment