bug-bash
[Top][All Lists]
Advanced

[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: Chet Ramey
Subject: Re: When cd'd into a symlinked directory, directory completion can sometimes erroneously parse ../
Date: Wed, 06 Feb 2013 11:45:59 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 2/5/13 10:23 PM, i336 wrote:
> Do:
> 
> mkdir <test name here>
> cd <the above>
> 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).

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]