Skip to content

Commit 51ba8db

Browse files
committed
Merged in sharat87/virtualenvwrapper (pull request #1)
2 parents 639fe5d + b13f4b7 commit 51ba8db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

virtualenvwrapper.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,13 @@ mkvirtualenv () {
268268
eval "envname=\$$#"
269269
virtualenvwrapper_verify_workon_home || return 1
270270
virtualenvwrapper_verify_virtualenv || return 1
271-
(cd "$WORKON_HOME" &&
271+
(
272+
[ -n "$ZSH_VERSION" ] && setopt SH_WORD_SPLIT
273+
cd "$WORKON_HOME" &&
272274
"$VIRTUALENVWRAPPER_VIRTUALENV" $VIRTUALENVWRAPPER_VIRTUALENV_ARGS "$@" &&
273275
[ -d "$WORKON_HOME/$envname" ] && \
274276
virtualenvwrapper_run_hook "pre_mkvirtualenv" "$envname"
275-
)
277+
)
276278
typeset RC=$?
277279
[ $RC -ne 0 ] && return $RC
278280

0 commit comments

Comments
 (0)