summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-03-11 19:30:42 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-03-11 19:30:42 +0000
commitd1314ec01a90017c0688c423eda86dadac50e855 (patch)
tree9115ec9de698698768eb11cf24a01cb68d639bd5
parentc9847167089918bb8e11d1f1a83fe1015167ccac (diff)
downloadzsh-d1314ec01a90017c0688c423eda86dadac50e855.tar.gz
zsh-d1314ec01a90017c0688c423eda86dadac50e855.tar.xz
zsh-d1314ec01a90017c0688c423eda86dadac50e855.zip
Handle quoted whitespace in glob expansions.
-rw-r--r--Completion/Core/_expand3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Core/_expand b/Completion/Core/_expand
index d5864f50d..81ca913ba 100644
--- a/Completion/Core/_expand
+++ b/Completion/Core/_expand
@@ -68,7 +68,8 @@ subd=("$exp[@]")
 # Now try globbing.
 
 [[ "$force" = *g* ]] || zstyle -T ":completion:${curcontext}:" glob &&
-    eval 'exp=( ${~exp} ); exp=( ${(q)exp} )' 2>/dev/null
+    eval 'exp=( ${~exp//(#b)\\[ 	
+]/$match[1]} ); exp=( ${(q)exp} )' 2>/dev/null
 
 ### Don't remember why we once used this instead of the (q) above.
 #    eval 'exp=( ${~exp} ); exp=( ${exp//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} )' 2>/dev/null