about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-05-21 07:35:33 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-05-21 07:35:33 +0000
commit477cc33aaef10c3afcef758a51dc390b8d45d0b3 (patch)
tree5cdc98b4fd631e8406ab27f528b5c27bdb0d4f1f /Completion
parentbfc32be424b3ca900de5a6492d2a926aaf3ac44a (diff)
downloadzsh-477cc33aaef10c3afcef758a51dc390b8d45d0b3.tar.gz
zsh-477cc33aaef10c3afcef758a51dc390b8d45d0b3.tar.xz
zsh-477cc33aaef10c3afcef758a51dc390b8d45d0b3.zip
better splitting of -g-strings; this failed when patterns contained spaces (17189)
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_path_files4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files
index df820c643..b41f8afa9 100644
--- a/Completion/Unix/Type/_path_files
+++ b/Completion/Unix/Type/_path_files
@@ -23,9 +23,9 @@ sopt="-${(@j::M)${(@)tmp1#-}#?}"
 (( $tmp1[(I)-[/g]*] )) && haspats=yes
 (( $tmp1[(I)-g*] )) && gopt=yes
 if (( $tmp1[(I)-/] )); then
-  pats=( '*(-/)' ${=${(M)tmp1:#-g*}#-g} )
+  pats=( '*(-/)' ${(z)${(M)tmp1:#-g*}#-g} )
 else
-  pats=( "${(@)=${(@M)tmp1:#-g*}#-g}" )
+  pats=( "${(@z)${(@M)tmp1:#-g*}#-g}" )
 fi
 pats=( "${(@)pats:# #}" )