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 c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature