zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@zanshin.com>
To: zsh-workers@sunsite.dk
Subject: PATCH: file-sort in _path_files
Date: Tue, 27 Apr 2004 08:57:22 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.44.0404270749030.10119-100000@aztec.zanshin.com> (raw)

This seems to fix the bug I just reported; there may be a more elegant
way -- such as, simply inserting a new (#q...) in the right place -- but
I wasn't sure what ramifications that might have for the "copy qualifiers
from the line" section that creates $tmp3 (just above the patched lines).
More patching may still be needed for that portion.

Index: Completion/Unix/Type/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_path_files,v
retrieving revision 1.23
diff -u -r1.23 _path_files
--- Completion/Unix/Type/_path_files	8 May 2003 10:30:49 -0000	1.23
+++ Completion/Unix/Type/_path_files	27 Apr 2004 15:21:47 -0000
@@ -120,10 +120,10 @@
 
     tmp2=()
     for tmp1 in "$pats[@]"; do
-      if [[ "$tmp1" = (#b)(*[^\$])(\(\([^\|~]##\)\)) ]]; then
-        tmp2=( "$tmp2[@]" "${match[1]}((${sort}${match[2][3,-1]}" )
-      elif [[ "$tmp1" = (#b)(*[^\$])(\([^\|~]##\)) ]]; then
-        tmp2=( "$tmp2[@]" "${match[1]}(${sort}${match[2][2,-1]}" )
+      if [[ "$tmp1" = (#b)(*[^\$])\(\((\#q)#(([^\|~])##\)\)) ]]; then
+        tmp2=( "$tmp2[@]" "${match[1]}((${sort}${match[3]}" )
+      elif [[ "$tmp1" = (#b)(*[^\$])\((\#q)#(([^\|~])##\)) ]]; then
+        tmp2=( "$tmp2[@]" "${match[1]}(${sort}${match[3]}" )
       else
         tmp2=( "$tmp2[@]" "${tmp1}(${sort})" )
       fi



             reply	other threads:[~2004-04-27 15:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-27 15:57 Bart Schaefer [this message]
2004-04-27 16:07 ` Bart Schaefer
2004-04-27 16:59   ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0404270749030.10119-100000@aztec.zanshin.com \
    --to=schaefer@zanshin.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).