diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2001-03-11 19:30:42 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-03-11 19:30:42 +0000 |
| commit | d1314ec01a90017c0688c423eda86dadac50e855 (patch) | |
| tree | 9115ec9de698698768eb11cf24a01cb68d639bd5 /Completion/Core | |
| parent | Better handling of multi-line buffers. (diff) | |
| download | zsh-d1314ec01a90017c0688c423eda86dadac50e855.tar zsh-d1314ec01a90017c0688c423eda86dadac50e855.tar.gz zsh-d1314ec01a90017c0688c423eda86dadac50e855.tar.bz2 zsh-d1314ec01a90017c0688c423eda86dadac50e855.tar.lz zsh-d1314ec01a90017c0688c423eda86dadac50e855.tar.xz zsh-d1314ec01a90017c0688c423eda86dadac50e855.tar.zst zsh-d1314ec01a90017c0688c423eda86dadac50e855.zip | |
Handle quoted whitespace in glob expansions.
Diffstat (limited to 'Completion/Core')
| -rw-r--r-- | Completion/Core/_expand | 3 |
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 |
