On 7/17/26 1:12 AM, Marcus Johansson via Bug reports for the GNU Bourne
Bash Version: 5.3
Patch Level: 15
Release Status: release

Description:
I can add a non existing directory using pushd by doing following:
pushd -n dir

This will add the directory 'dir' at position 1 in the stack even though it 
does not exist

I guess it's in the eye of the beholder. `pushd' and `popd' don't verify
the existence of any of the directories -- it's just a stack. They rely
on the implicit `cd' to do that. If you suppress the `cd' and just
manipulate the stack, there's no verification step.

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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

  • Possible t... Marcus Johansson via Bug reports for the GNU Bourne Again SHell
    • Re: P... Chet Ramey

Reply via email to