Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: file completion of ~user/... stats wrong directory
- X-seq: zsh-workers 27262
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: file completion of ~user/... stats wrong directory
- Date: Thu, 10 Sep 2009 11:07:25 -0400
- In-reply-to: <m3my54ohzj.fsf@xxxxxxxxxxxxxx> (Greg Klanderman's message of "Wed, 09 Sep 2009 00:32:48 -0400")
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <19030.11925.370937.608524@xxxxxxxxxxxxxxxxxx> <20090710100721.56b0874c@news01> <m31vooljj7.fsf@xxxxxxxxxxxxxx> <200907101421.n6AELWFS028008@xxxxxxxxxxxxxx> <m3my54ohzj.fsf@xxxxxxxxxxxxxx>
- Reply-to: gak@xxxxxxxxxxxxxx
>>>>> On September 9, 2009 Greg Klanderman <gak@xxxxxxxxxxxxxx> wrote:
> Looks like this is being caused by the 'accept-exact-dirs' logic in
> _path_files:
Attached below is the one line fix.
greg
Index: Completion/Unix/Type/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_path_files,v
retrieving revision 1.47
diff -u -r1.47 _path_files
--- Completion/Unix/Type/_path_files 5 Aug 2009 00:46:45 -0000 1.47
+++ Completion/Unix/Type/_path_files 10 Sep 2009 15:04:23 -0000
@@ -355,7 +355,7 @@
tmp1=$match[1]
tpre=$match[2]
while true; do
- if [[ -d $donepath$tmp1 ]]; then
+ if [[ -d $prepath$realpath$donepath$tmp1 ]]; then
donepath=$donepath$tmp1/
pre=$tpre
break
Messages sorted by:
Reverse Date,
Date,
Thread,
Author