From 8ff6a955fe4b356db10ee40a456e35bda669ceef Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 2 Feb 2001 08:18:49 +0000 Subject: Peter:13427: filename-quoting fix in _expand --- Completion/Core/_expand | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Completion') diff --git a/Completion/Core/_expand b/Completion/Core/_expand index 344dbaf88..d5864f50d 100644 --- a/Completion/Core/_expand +++ b/Completion/Core/_expand @@ -68,7 +68,10 @@ subd=("$exp[@]") # Now try globbing. [[ "$force" = *g* ]] || zstyle -T ":completion:${curcontext}:" glob && - eval 'exp=( ${~exp} ); exp=( ${exp//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} )' 2>/dev/null + eval 'exp=( ${~exp} ); 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 # If we don't have any expansions or only one and that is the same # as the original string, we let other completers run. -- cgit v1.3.1