Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH Re: squeeze-slashes false not working?



On May 15, 12:12pm, Mikael Magnusson wrote:
} Subject: Re: PATCH Re: squeeze-slashes false not working?
}
} On 15 May 2011 03:38, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
} > This change doesn't fix it for me.  If I apply your patch and then set
} > accept-exact-dirs yes, then //// completes things in the root between
} > the first and second slashes, but I'm back to /home/// being treated
} > as /home/.  There must be something else going on.
} 
} No idea what then. With /// (//// takes a bit too long), I get all
} sorts of stuff completed, dev/disk/by-label/, proc/sys/debug/ etc.

Are you starting from zsh -f and setting ONLY the accept-exact-dirs
zstyle?  Or are you referring to what happens with your full .zshrc?
 
} > As an additional observation, even without your patch if I do this:
} >
} > % mkdir /tmp/ff /tmp/ffzz
} > % ls //ff/<TAB>
} >
} > I get silent failure.  It completes /tmp if either I leave off the
} > trailing slash, or if there is at least one file in one of the
} > directories.  I can't tell if this is the expected behavior or not.
} 
} ---- no match for: `arg', `directories', `file', or `corrections'

Yes, again I'm in zsh -f so I don't have any descriptions set up.  This
is what I suspected was the cause.

What's confusing is that if the slash is auto-appended and therefore
auto-removable, pressing TAB after the trailing slash works the same
as in the case where you start with no trailing slash.



Messages sorted by: Reverse Date, Date, Thread, Author