Commits

Doug Hellmann committed a6f615e Merge

Merged in mrdbr/virtualenvwrapper (pull request #3)

Preserve quoting for allvirtualenv command arguments

Comments (0)

Files changed (2)

tests/test_allvirtualenv.sh

     assertTrue "Did not find test2" "allvirtualenv pwd | grep -q 'test2$'"
 }
 
+test_allvirtualenv_spaces() {
+    assertTrue "Command did not output The Zen of Python" "allvirtualenv python -c 'import this' | grep -q 'The Zen of Python'"
+}
+
 . "$test_dir/shunit2"

virtualenvwrapper.sh

         # because we don't want to trigger any hooks.
         (source "$WORKON_HOME/$d/bin/activate";
             cd "$VIRTUAL_ENV";
-            $@)
+            "$@")
         echo
     done
 }