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

RE: _path_files and _cd with explicit glob pattern



> > And another problem with _cd (I think)
> > 
> > itsrm2% cd s/*3TAB
> >    Beep
> 
> Is this still with the setting of `cdpath' you gave above? If so, this 
> is correct ;-)
> 

Ehem ... cd first looks in the current directory. So

bor@itsrm2:~/test%> ls -l cd
total 0
drwxr-xr-x   2 bor      sinix         96 Mar 19 12:55 foo
bor@itsrm2:~/test%> echo $cdpath
/home/bor/test/cd
bor@itsrm2:~/test%> cd c/*oTAB
  Beeps, but
bor@itsrm2:~/test%> cd cd/foo
bor@itsrm2:~/test/cd/foo%>

So, it looks, like cd completion ignores current directory

/andrej



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