diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-05-07 09:25:05 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-05-07 09:25:05 +0000 |
commit | 525a133f2f37a7f4d881bd86fc79522223cfd5a2 (patch) | |
tree | b1a53d2a29e676773fe5280f85aeef68196a757b | |
parent | 22cdaf1d3b0ac937f0def952642a779d6a2c1838 (diff) | |
download | zsh-525a133f2f37a7f4d881bd86fc79522223cfd5a2.tar.gz zsh-525a133f2f37a7f4d881bd86fc79522223cfd5a2.tar.xz zsh-525a133f2f37a7f4d881bd86fc79522223cfd5a2.zip |
double all backslashes before colons in the original pattern (14240)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Type/_files | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 52c391af3..3555b4490 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-05-07 Sven Wischnowsky <wischnow@zsh.org> + + * 14240: Completion/Unix/Type/_files: double all backslashes + before colons in the original pattern + 2001-05-06 Bart Schaefer <schaefer@zsh.org> * 14235: Completion/Zsh/Context/_subscript: Improve handling of diff --git a/Completion/Unix/Type/_files b/Completion/Unix/Type/_files index 1385bfc97..a291ee786 100644 --- a/Completion/Unix/Type/_files +++ b/Completion/Unix/Type/_files @@ -52,7 +52,7 @@ fi tried=() for def in "$pats[@]"; do - eval "def=( ${${def:s/\\:/\\\\\\\\\\\\:}//(#b)([][()|*?^#~<>])/\\${match[1]}} )" + eval "def=( ${${def:gs/\\:/\\\\\\\\\\\\:}//(#b)([][()|*?^#~<>])/\\${match[1]}} )" for sdef in "$def[@]"; do tag="${${sdef#*[^\\]:}%%:*}" |