[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When cd'd into a symlinked directory, directory completion can somet
Re: When cd'd into a symlinked directory, directory completion can sometimes erroneously parse ../
Wed, 6 Feb 2013 17:58:17 -0700
Chet Ramey wrote:
> i336 wrote:
> > mkdir -p dir1/dir2
> > ln -s dir1/dir2 ouch
> > touch idontexist
> > ls # ^ to see dir & files & prove they really exist :P
> > cd ouch
> > ls ../ido<press tab>
> > ...<and now press enter>
> Filename completion uses whatever file system view -- logical or physical
> -- that you have selected for bash. The default is a logical view. `ls',
> on the other hand, doesn't know anything about that. This is not solvable
> unless you decide to use a physical view consistently (set -o physical).
I always use 'set -o physical' everywhere to have consistent behavior.
The evil truth is better than a good lie.