Commits

Shrikant Sharat Kandula  committed 9181ef1

VIRTUALENVWRAPPER_VIRTUALENV_ARGS not working with >1 args on zsh

  • Participants
  • Parent commits a69566c
  • Branches zsh

Comments (0)

Files changed (1)

File virtualenvwrapper.sh

     eval "envname=\$$#"
     virtualenvwrapper_verify_workon_home || return 1
     virtualenvwrapper_verify_virtualenv || return 1
-    (cd "$WORKON_HOME" &&
+    (
+        [ -n "$ZSH_VERSION" ] && setopt SH_WORD_SPLIT
+        cd "$WORKON_HOME" &&
         "$VIRTUALENVWRAPPER_VIRTUALENV" $VIRTUALENVWRAPPER_VIRTUALENV_ARGS "$@" &&
         [ -d "$WORKON_HOME/$envname" ] && \
             virtualenvwrapper_run_hook "pre_mkvirtualenv" "$envname"
-        )
+    )
     typeset RC=$?
     [ $RC -ne 0 ] && return $RC