Skip to content

Commit 9be7279

Browse files
committed
address issue #46 by escaping the calls to which
1 parent ffeb19b commit 9be7279

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2010-06-03 Doug Hellmann <[email protected]>
2+
3+
* virtualenvwrapper.sh: Escape the call to "which" so we don't use
4+
an alias by accident.
5+
16
2010-05-22 Doug Hellmann <[email protected]>
27

38
* tests/test_cp.sh: Clarify some of the tests by breaking up,

virtualenvwrapper.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fi
5454
# Locate the global Python where virtualenvwrapper is installed.
5555
if [ "$VIRTUALENVWRAPPER_PYTHON" = "" ]
5656
then
57-
VIRTUALENVWRAPPER_PYTHON="$(which python)"
57+
VIRTUALENVWRAPPER_PYTHON="$(\which python)"
5858
fi
5959

6060
# If the path is relative, prefix it with $HOME
@@ -142,7 +142,7 @@ virtualenvwrapper_initialize () {
142142

143143
# Verify that virtualenv is installed and visible
144144
virtualenvwrapper_verify_virtualenv () {
145-
typeset venv=$(which virtualenv | grep -v "not found")
145+
typeset venv=$(\which virtualenv | grep -v "not found")
146146
if [ "$venv" = "" ]
147147
then
148148
echo "ERROR: virtualenvwrapper could not find virtualenv in your path" >&2

0 commit comments

Comments
 (0)