zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: file-sort in _path_files
@ 2004-04-27 15:57 Bart Schaefer
  2004-04-27 16:07 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2004-04-27 15:57 UTC (permalink / raw)
  To: zsh-workers

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-27 23:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-27 15:57 PATCH: file-sort in _path_files Bart Schaefer
2004-04-27 16:07 ` Bart Schaefer
2004-04-27 16:59   ` Peter Stephenson

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).