From 695f023058a9c37d70e057dcf4ad9c7dfedfca9f Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Tue, 10 Sep 2002 18:22:08 +0000 Subject: 17189: Sven: Completion/Unix/Type/_path_files: better splitting of -g-strings; this failed when patterns contained spaces --- Completion/Unix/Type/_path_files | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Unix') 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:# #}" ) -- cgit 1.4.1