Commits

Doug Hellmann committed 4428140

fix argument processing in mkvirtualenv

  • Participants
  • Parent commits 9cc0a3c

Comments (0)

Files changed (2)

 =======
 Updates
 =======
+
+1.8.1
+  - Corrected a problem with change to mkvirtualenv that lead to release 1.8 by using an alternate fix proposed by James in comments on release 1.4.
+
 1.8
   - Fix for processing the argument list in mkvirtualenv from jorgevargas (BitBucket issue #1)
 

virtualenvwrapper_bashrc

 # (where the options are passed directly to virtualenv)
 #
 function mkvirtualenv () {
+    eval "envname=\$$#"
     verify_workon_home
-    (cd "$WORKON_HOME"; virtualenv "$@") 
-    workon "$_"
+    (cd "$WORKON_HOME"; virtualenv "$@")
+    workon "$envname"
 }
 
 # Remove an environment, in the WORKON_HOME.