1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-31 03:04:49 +01:00

double all backslashes before colons in the original pattern (14240)

This commit is contained in:
Sven Wischnowsky 2001-05-07 09:25:05 +00:00
parent 22cdaf1d3b
commit 525a133f2f
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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#*[^\\]:}%%:*}"