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: Reuti
Subject: Re: Symlinks handled inconsistently by cd and wild card expansion
Date: Thu, 30 Mar 2017 20:27:45 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Am 30.03.2017 um 20:06 schrieb Chet Ramey:

> 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.

Thx for the clarification. - Reuti
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iEYEARECAAYFAljdTiIACgkQo/GbGkBRnRo3FQCgtL4nto3yovW4WMtcZV+CxUWG
ddgAoJaGPWT8GLtp1CL6eSbVc6cu7dLS
=DHoV
-----END PGP SIGNATURE-----



reply via email to

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