bug-bash
[Top][All Lists]
Advanced

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

Re: Symlinks handled inconsistently by cd and wild card expansion


From: Chet Ramey
Subject: Re: Symlinks handled inconsistently by cd and wild card expansion
Date: Thu, 30 Mar 2017 14:06:22 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 3/30/17 11:55 AM, Reuti wrote:

> There are the options -P and -L to `pwd` and `cd`, i.e. and `cd -P ..` 
> follows the path up, independent from the symlink, while the default is -L.
> 
> I don't think that changing it in general would be good, but agree that it 
> might honor -P or -L. But this is hard to determine, as it depends on the 
> specified command.
> 
> For now I get the impression, that both, the logical and the physical paths 
> are checked.

When bash is not in Posix mode, it tries, as a last-ditch effort when
using the canonicalized pathname fails, to use what the user typed. This
has been the case since February, 1993, and went in as the result of
user requests.

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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