Skip to content

Commit a6f615e

Browse files
committed
Merged in mrdbr/virtualenvwrapper (pull request #3)
Preserve quoting for allvirtualenv command arguments
2 parents 92737bd + 55f94ce commit a6f615e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/test_allvirtualenv.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@ test_allvirtualenv_all() {
3030
assertTrue "Did not find test2" "allvirtualenv pwd | grep -q 'test2$'"
3131
}
3232

33+
test_allvirtualenv_spaces() {
34+
assertTrue "Command did not output The Zen of Python" "allvirtualenv python -c 'import this' | grep -q 'The Zen of Python'"
35+
}
36+
3337
. "$test_dir/shunit2"

virtualenvwrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ function allvirtualenv {
11691169
# because we don't want to trigger any hooks.
11701170
(source "$WORKON_HOME/$d/bin/activate";
11711171
cd "$VIRTUAL_ENV";
1172-
$@)
1172+
"$@")
11731173
echo
11741174
done
11751175
}

0 commit comments

Comments
 (0)