about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-29 06:59:00 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-29 06:59:00 +0000
commit806e8aa6afe6b8864c0124bfcdd7a0909110379b (patch)
treeb740f617fd5775ab4e0a5bb27e206d95b96ea697 /Completion
parentd38f54a92862cfc054bb11bc48066fdeba8b6106 (diff)
downloadzsh-806e8aa6afe6b8864c0124bfcdd7a0909110379b.tar.gz
zsh-806e8aa6afe6b8864c0124bfcdd7a0909110379b.tar.xz
zsh-806e8aa6afe6b8864c0124bfcdd7a0909110379b.zip
quote brace-strings (12113)
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_expand5
1 files changed, 3 insertions, 2 deletions
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