about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-18 07:18:57 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-18 07:18:57 +0000
commit7594cc1872d276968d5b58d4cd4040790efe76ef (patch)
tree2a65aab00dcbc8a61d7bf6a3c4d8e7cc2768c35b
parent3ce575b0f9b3930848673eaa2ecc6c6c5c63231d (diff)
downloadzsh-7594cc1872d276968d5b58d4cd4040790efe76ef.tar.gz
zsh-7594cc1872d276968d5b58d4cd4040790efe76ef.tar.xz
zsh-7594cc1872d276968d5b58d4cd4040790efe76ef.zip
make _files remove backslashes in patterns (11453)
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Core/_files2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 13e7c7b9c..0ca1ff262 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/Completion/Core/_files b/Completion/Core/_files
index 5c03848bb..b1d06e23a 100644
--- a/Completion/Core/_files
+++ b/Completion/Core/_files
@@ -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}:}"