diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-08-03 13:35:43 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-08-03 13:35:43 +0000 |
commit | 55b07cb525388bca7c0dbaf057483c493ff0b053 (patch) | |
tree | b6aa0008b62c8b5b123bab75991f521baf54025e /Completion/Core/_expand | |
parent | 5d0ef3096cae59e1c3a5906fc9bb153e0a7fdfb3 (diff) | |
download | zsh-55b07cb525388bca7c0dbaf057483c493ff0b053.tar.gz zsh-55b07cb525388bca7c0dbaf057483c493ff0b053.tar.xz zsh-55b07cb525388bca7c0dbaf057483c493ff0b053.zip |
quoting
Diffstat (limited to 'Completion/Core/_expand')
-rw-r--r-- | Completion/Core/_expand | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Core/_expand b/Completion/Core/_expand index 09d89a30b..bcc357ead 100644 --- a/Completion/Core/_expand +++ b/Completion/Core/_expand @@ -63,7 +63,7 @@ if [[ "$force" = *s* ]] || eval exp\=\( ${${(q)exp}:gs/\\{/\{/:gs/\\}/\}/} \) eval 'exp=( ${${(e)exp//\\[ ]/ }//(#b)([ -])/\\$match[1]} )' 2>/dev/null +\\])/\\$match[1]} )' 2>/dev/null else exp=( ${exp:s/\\\$/\$} ) fi @@ -77,7 +77,7 @@ subd=("$exp[@]") # Now try globbing. [[ "$force" = *g* ]] || zstyle -T ":completion:${curcontext}:" glob && - eval 'exp=( ${~exp} )' 2>/dev/null + 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. |