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

Re: GLOB_COMPLETE and numbered directories



Mikael Magnusson wrote on Thu, Mar 19, 2015 at 10:16:02 +0100:
> On Thu, Mar 19, 2015 at 8:32 AM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > % mkdir -p {bar,baz}/iota
> > % cat b/i<TAB>
...
> > % mkdir -p {10a,11a}/iota
> > % cat 1/i<CURSOR>
> 
> Are you sure the difference isn't because your differing character is
> now not the last character of the directory name?

Yes, if I use 'bra' and 'bza' as the filenames, I get the same behaviour
as in the '10a'/'11a' case: it leaves me with 'ba/iota<CURSOR>'.  So
it's not about numbered directories, it's about disambiguating.

Thanks for pointing this out.

Daniel



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