diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-02-02 08:18:49 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-02-02 08:18:49 +0000 |
commit | 8ff6a955fe4b356db10ee40a456e35bda669ceef (patch) | |
tree | d9615e81b377803582b47d0534fa3fb2c54bd3d0 | |
parent | 3f862ce2057c4b1154af3297a3a45d724cf5d25b (diff) | |
download | zsh-8ff6a955fe4b356db10ee40a456e35bda669ceef.tar.gz zsh-8ff6a955fe4b356db10ee40a456e35bda669ceef.tar.xz zsh-8ff6a955fe4b356db10ee40a456e35bda669ceef.zip |
Peter:13427: filename-quoting fix in _expand
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Core/_expand | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 69c47c872..f2ab51b36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-02-02 Sven Wischnowsky <wischnow@zsh.org> + + * Peter: 13427: Completion/Core/_expand: fix for handling quoting + for filenames with weird characters + 2001-02-01 Oliver Kiddle <opk@zsh.org> * 13422: README, Completion/User/_urls, Doc/Zsh/manual.yo, 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. |