From 806e8aa6afe6b8864c0124bfcdd7a0909110379b Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 29 Jun 2000 06:59:00 +0000 Subject: quote brace-strings (12113) --- Completion/Core/_expand | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Completion') diff --git a/Completion/Core/_expand b/Completion/Core/_expand index 6ebbfa042..d0f8d8327 100644 --- a/Completion/Core/_expand +++ b/Completion/Core/_expand @@ -59,8 +59,9 @@ if [[ "$force" = *s* ]] || zstyle -T ":completion:${curcontext}:" substitute; then [[ ! -o ignorebraces && "${#${exp}//[^\{]}" = "${#${exp}//[^\}]}" ]] && eval exp\=\( ${${(q)exp}:gs/\\{/\{/:gs/\\}/\}/} \) - exp=( ${(e)exp//\\[ -]/ } ) + exp=( ${${(e)exp//\\[ +]/ }//(#b)([ +])/\\$match[1]} ) else exp=( ${exp:s/\\\$/\$} ) fi -- cgit 1.4.1