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

Re: Empty directories



On 10/01/2014 05:47 PM, Bart Schaefer wrote:
> On Oct 1,  4:47pm, Yuri D'Elia wrote:
> }
> } I tried to look into _path_files, and there's actually a special rule to
> } handle empty directories, though I got lost in the expansion loop.
> 
> I'm not entirely sure (see "no one really understands") but I think that
> rule is for handling partial path completion, that is, given "a/b/c" it
> eliminates empty directories matching a* or a*/b* -- because it knows it
> has to get as far as a*/b*/c*, so empty dirs along the way are useless.

Ok, so maybe we can cut it short and avoid to append a slash on empty
directories directly on the first run?

This would stop path completion immediately.




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