From f2040baa9b457973da012405af7f600c72be85a7 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 6 Jul 2001 10:46:31 +0000 Subject: (15283) --- ChangeLog | 5 +++++ Completion/Unix/Type/_path_files | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 209c9129a..c21e30555 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-07-06 Sven Wischnowsky + + * 15283: Completion/Unix/Type/_path_files: when looking for + parameter expansions, ignore `$'s with a backslash before them + 2001-07-06 Peter Stephenson * 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 -- cgit 1.4.1