diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2000-07-03 17:45:46 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2000-07-03 17:45:46 +0000 |
commit | 6f8986d370a7b4d799cab40c5ac3a3d937b9faeb (patch) | |
tree | c4b85a72df843276a4695dcd729957972c79629a | |
parent | 47e9efb061dd84118fd18a14682b771009fb44fb (diff) | |
download | zsh-6f8986d370a7b4d799cab40c5ac3a3d937b9faeb.tar.gz zsh-6f8986d370a7b4d799cab40c5ac3a3d937b9faeb.tar.xz zsh-6f8986d370a7b4d799cab40c5ac3a3d937b9faeb.zip |
12148: Don't merge display-ordering glob flags into the parens of $(...).
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Completion/Core/_path_files | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index 41e1d5326..919c914ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-07-03 Bart Schaefer <schaefer@zsh.org> + + * 12148: Completion/Core/_path_files: Followup to 12133 as + suggested by Sven in 12137: Don't merge display-ordering glob + flags into the parens in $(...) expressions. + 2000-07-03 Peter Stephenson <pws@cambridgesiliconradio.com> * 12146: Doc/Makefile.in: reintroduce mysteriously disappeared diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index df7f50d8a..48e9dd299 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -117,9 +117,9 @@ if zstyle -s ":completion:${curcontext}:files" file-sort tmp1; then tmp2=() for tmp1 in "$pats[@]"; do - if [[ "$tmp1" = (#b)(?*)(\(\([^\|~]##\)\)) ]]; then + if [[ "$tmp1" = (#b)(*[^\$])(\(\([^\|~]##\)\)) ]]; then tmp2=( "$tmp2[@]" "${match[1]}((${sort}${match[2][3,-1]}" ) - elif [[ "$tmp1" = (#b)(?*)(\([^\|~]##\)) ]]; then + elif [[ "$tmp1" = (#b)(*[^\$])(\([^\|~]##\)) ]]; then tmp2=( "$tmp2[@]" "${match[1]}(${sort}${match[2][2,-1]}" ) else tmp2=( "$tmp2[@]" "${tmp1}(${sort})" ) @@ -150,8 +150,8 @@ zstyle -a ":completion:${curcontext}:files" fake fake zstyle -s ":completion:${curcontext}:files" ignore-parents ignpar if [[ -n "$compstate[pattern_match]" && - ( ( -z "$SUFFIX" && "$PREFIX" = *\([^\|\~]##\) ) || - "$SUFFIX" = *\([^\|\~]##\) ) ]]; then + ( ( -z "$SUFFIX" && "$PREFIX" = (|*[^\$])\([^\|\~]##\) ) || + "$SUFFIX" = (|*[^\$])\([^\|\~]##\) ) ]]; then # Copy all glob qualifiers from the line to # the patterns used when generating matches if [[ "$SUFFIX" = *\([^\|\~]##\) ]]; then @@ -163,9 +163,9 @@ if [[ -n "$compstate[pattern_match]" && fi tmp2=() for tmp1 in "$pats[@]"; do - if [[ "$tmp1" = (#b)(?*)(\(\([^\|~]##\)\)) ]]; then + if [[ "$tmp1" = (#b)(*[^\$])(\(\([^\|~]##\)\)) ]]; then tmp2=( "$tmp2[@]" "${match[1]}((${tmp3}${match[2][3,-1]}" ) - elif [[ "$tmp1" = (#b)(?*)(\([^\|~]##\)) ]]; then + elif [[ "$tmp1" = (#b)(*[^\$])(\([^\|~]##\)) ]]; then tmp2=( "$tmp2[@]" "${match[1]}(${tmp3}${match[2][2,-1]}" ) else tmp2=( "$tmp2[@]" "${tmp1}(${tmp3})" ) |