1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

make _files remove backslashes in patterns (11453)

This commit is contained in:
Sven Wischnowsky 2000-05-18 07:18:57 +00:00
parent 3ce575b0f9
commit 7594cc1872
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2000-05-18 Sven Wischnowsky <wischnow@zsh.org>
* 11453: Completion/Core/_files: make _files remove backslashes in
patterns
2000-05-17 Bart Schaefer <schaefer@zsh.org>
* Felix Rosencrantz: 11450: Replace `tr` with paramsubst.

View file

@ -53,7 +53,7 @@ for def in "$pats[@]"; do
for sdef in "$def[@]"; do
tag="${${sdef#*[^\\]:}%%:*}"
pat="${${${sdef%%:${tag}*}//\\\\:/:}//,/ }"
pat="${${${sdef%%:${tag}*}//\\:/:}//,/ }"
if [[ "$sdef" = *:${tag}:* ]]; then
descr="${(Q)sdef#*:${tag}:}"