summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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