Skip to content

Commit 55f94ce

Browse files
committed
Preserve quoting for allvirtualenv command arguments
E.g allvirtualenv python -c 'import this'
1 parent a933b98 commit 55f94ce

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
@@ -1168,7 +1168,7 @@ function allvirtualenv {
11681168
# because we don't want to trigger any hooks.
11691169
(source "$WORKON_HOME/$d/bin/activate";
11701170
cd "$VIRTUAL_ENV";
1171-
$@)
1171+
"$@")
11721172
echo
11731173
done
11741174
}

0 commit comments

Comments
 (0)