Skip to content

Commit 0d2ea2e

Browse files
committed
fix arg handling for lsvirtualenv under zsh - fixes issue #86
2 parents 41f3662 + 6206c03 commit 0d2ea2e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/en/history.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Release History
55
dev
66

77
- Fix problem with space in WORKON_HOME path (:bbissue:`79`).
8+
- Fix problem with argument processing in lsvirtualenv under zsh
9+
(:bbissue:`86`). Thanks to Nat Williams (:bbuser:`natw`) for the
10+
bug report and patch.
811

912
2.6.3
1013

virtualenvwrapper.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ _lsvirtualenv_usage () {
259259
#
260260
# Usage: lsvirtualenv [-l]
261261
lsvirtualenv () {
262-
typeset args="$(getopt blh "$@")"
262+
typeset -a args
263+
args=($(getopt blh "$@"))
263264
if [ $? != 0 ]
264265
then
265266
_lsvirtualenv_usage

0 commit comments

Comments
 (0)