bug-bash
[Top][All Lists]
Advanced

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

Re: cd"": Shouldn't it fail?


From: Chet Ramey
Subject: Re: cd"": Shouldn't it fail?
Date: Tue, 30 Jan 2024 10:44:26 -0500
User-agent: Mozilla Thunderbird

On 1/30/24 10:42 AM, Kerin Millar wrote:
On Tue, 30 Jan 2024 10:34:28 -0500
Chet Ramey <chet.ramey@case.edu> wrote:

On 1/30/24 10:29 AM, Kerin Millar wrote:

I'm not sure that this is accurate. In my testing, bash does not even perform this 
canonicalization step, which is optional to begin with. That is, it states that "an 
implementation may" canonicalize in the manner described, and prescribes a course of 
action to take if - and only if - such canonicalization is performed.

It does. Try `cd /usr/////////bin' and see what ends up in $PWD.

Thanks. I doubted myself on this point upon reading your response to my last 
bug report (in which you spoke of canonicalization). I was certain that it was 
not material to the behaviour under discussion in this thread, though.

It's not, really, since the operand is "" and $PWD won't contain multiple
slashes.

I said "it was not".

I agree with you.

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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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