about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-06 10:46:31 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-06 10:46:31 +0000
commitf2040baa9b457973da012405af7f600c72be85a7 (patch)
tree10ed20ce0ce794c8b6fdeec414a75090790bac1c
parentf486329a1604c44c36e14d88d04a6520cffaa8f5 (diff)
downloadzsh-f2040baa9b457973da012405af7f600c72be85a7.tar.gz
zsh-f2040baa9b457973da012405af7f600c72be85a7.tar.xz
zsh-f2040baa9b457973da012405af7f600c72be85a7.zip
(15283)
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Type/_path_files2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 209c9129a..c21e30555 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-06  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 15283: Completion/Unix/Type/_path_files: when looking for
+	parameter expansions, ignore `$'s with a backslash before them
+
 2001-07-06  Peter Stephenson  <pws@csr.com>
 
 	* 15277: Src/glob.c: *real* bug with ${(S)...%%...}: the indices
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files
index c7eaf2df2..9cf7e2d9e 100644
--- a/Completion/Unix/Type/_path_files
+++ b/Completion/Unix/Type/_path_files
@@ -190,7 +190,7 @@ eorig="$orig"
 
 # Now let's have a closer look at the string to complete.
 
-if [[ "$pre" = [^][*?#^\|\<\>]#(\`[^\`]#\`|\$)*/* && "$compstate[quote]" != \' ]]; then
+if [[ "$pre" = [^][*?#^\|\<\>\\]#(\`[^\`]#\`|\$)*/* && "$compstate[quote]" != \' ]]; then
 
   # If there is a parameter expansion in the word from the line, we try
   # to complete the beast by expanding the prefix and completing anything