[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:34:28 -0500 |
User-agent: |
Mozilla Thunderbird |
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.
--
``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/
OpenPGP_signature.asc
Description: OpenPGP digital signature
- cd"": Shouldn't it fail?, jwo, 2024/01/28
- Re: cd"": Shouldn't it fail?, Kerin Millar, 2024/01/28
- Re: cd"": Shouldn't it fail?, Oğuz, 2024/01/28
- Re: cd"": Shouldn't it fail?, Kerin Millar, 2024/01/28
- Re: cd"": Shouldn't it fail?, Oğuz, 2024/01/28
- Re: cd"": Shouldn't it fail?, Chet Ramey, 2024/01/30
- Re: cd"": Shouldn't it fail?, Kerin Millar, 2024/01/30
- Re: cd"": Shouldn't it fail?,
Chet Ramey <=
- Re: cd"": Shouldn't it fail?, Kerin Millar, 2024/01/30
- Re: cd"": Shouldn't it fail?, Chet Ramey, 2024/01/30
Re: cd"": Shouldn't it fail?, Chet Ramey, 2024/01/30