diff options
| author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-29 06:59:00 +0000 |
|---|---|---|
| committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-29 06:59:00 +0000 |
| commit | 806e8aa6afe6b8864c0124bfcdd7a0909110379b (patch) | |
| tree | b740f617fd5775ab4e0a5bb27e206d95b96ea697 /Completion/Core | |
| parent | 12112: Don't make namedirs out of hash elements. (diff) | |
| download | zsh-806e8aa6afe6b8864c0124bfcdd7a0909110379b.tar zsh-806e8aa6afe6b8864c0124bfcdd7a0909110379b.tar.gz zsh-806e8aa6afe6b8864c0124bfcdd7a0909110379b.tar.bz2 zsh-806e8aa6afe6b8864c0124bfcdd7a0909110379b.tar.lz zsh-806e8aa6afe6b8864c0124bfcdd7a0909110379b.tar.xz zsh-806e8aa6afe6b8864c0124bfcdd7a0909110379b.tar.zst zsh-806e8aa6afe6b8864c0124bfcdd7a0909110379b.zip | |
quote brace-strings (12113)
Diffstat (limited to 'Completion/Core')
| -rw-r--r-- | Completion/Core/_expand | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Core/_expand b/Completion/Core/_expand index 6ebbfa042..d0f8d8327 100644 --- a/Completion/Core/_expand +++ b/Completion/Core/_expand @@ -59,8 +59,9 @@ if [[ "$force" = *s* ]] || zstyle -T ":completion:${curcontext}:" substitute; then [[ ! -o ignorebraces && "${#${exp}//[^\{]}" = "${#${exp}//[^\}]}" ]] && eval exp\=\( ${${(q)exp}:gs/\\{/\{/:gs/\\}/\}/} \) - exp=( ${(e)exp//\\[ -]/ } ) + exp=( ${${(e)exp//\\[ +]/ }//(#b)([ +])/\\$match[1]} ) else exp=( ${exp:s/\\\$/\$} ) fi |
