[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Directory completion problems

From: Chet Ramey
Subject: Re: Directory completion problems
Date: Thu, 19 Apr 2012 08:32:32 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

On 4/19/12 7:38 AM, Artur Rataj wrote:
> Yes, it appears that "lib" is indeed a symlink. Is it possible to treat it
> as if it were "just here" with the tab completion?

By default, bash uses a logical view of the file system, in which $PWD
and pwd report the current directory using the path used to get there,
and `..' in arguments to `cd' retreats one path element in pathname.   Bash
tries to be consistent in its treatment of `..', so there are occasional
discrepancies between what bash completes to and the physical directory

If you don't want bash to do that by default, use `set -o physical'.

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

reply via email to

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