about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2002-09-10 18:22:08 +0000
committerClint Adams <clint@users.sourceforge.net>2002-09-10 18:22:08 +0000
commit695f023058a9c37d70e057dcf4ad9c7dfedfca9f (patch)
treecfd161d791ba9b5af57c3f0a9dd5eab08213dd91
parent117c8b91560fd91cea50f36ac55a1853d8aa8754 (diff)
downloadzsh-695f023058a9c37d70e057dcf4ad9c7dfedfca9f.tar.gz
zsh-695f023058a9c37d70e057dcf4ad9c7dfedfca9f.tar.xz
zsh-695f023058a9c37d70e057dcf4ad9c7dfedfca9f.zip
17189: Sven: Completion/Unix/Type/_path_files: better splitting of
             -g-strings; this failed when patterns contained spaces
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Unix/Type/_path_files4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e8a6e295..55a211d69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-09-10  Clint Adams  <clint@zsh.org>
+
+        * 17189: Sven: Completion/Unix/Type/_path_files: better
+	splitting of -g-strings; this failed when patterns
+	contained spaces
+
 2002-09-06  Clint Adams  <clint@zsh.org>
 
         * 17629: Completion/Unix/Command/_ssh: patch from Juergen Erhard
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files
index a6d2a2834..5e36a4c2a 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:# #}" )