[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When cd'd into a symlinked directory, directory completion can somet
From: |
Bob Proulx |
Subject: |
Re: When cd'd into a symlinked directory, directory completion can sometimes erroneously parse ../ |
Date: |
Wed, 6 Feb 2013 17:58:17 -0700 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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.
Bob