From 477cc33aaef10c3afcef758a51dc390b8d45d0b3 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 21 May 2002 07:35:33 +0000 Subject: better splitting of -g-strings; this failed when patterns contained spaces (17189) --- ChangeLog | 5 +++++ Completion/Unix/Type/_path_files | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b8ef3ce00..37584a3d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-05-21 Sven Wischnowsky + + * 17189: Completion/Unix/Type/_path_files: better splitting of + -g-strings; this failed when patterns contained spaces + 2002-05-20 Felix Rosencrantz * 17021: Completion/Unix/Command/.distfiles, 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:# #}" ) -- cgit 1.4.1