bug-bash
[Top][All Lists]
Advanced

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

Re: bug when 'cd ..' to a directory who's parent has been deleted


From: Mike Frysinger
Subject: Re: bug when 'cd ..' to a directory who's parent has been deleted
Date: Tue, 9 Feb 2016 06:34:40 -0500

On 09 Feb 2016 12:22, Odd Beck wrote:
> We all use our number crunching slaves differently, so I have never seen it
> until yesterday, but if it's common then there might be a valid reason to
> investigate this issue and maybe do some bugfixin' :)

sorry, but my posting wasn't to say i think the current behavior in bash
is wrong.  i agree w/Chet that when you try to do `cd ..` in a dir that
has been disconnected from the active filesystem namespace, the behavior
is largely to be expected.  If $PWD has no actual parent, then you'll
get errors.  Falling back to ${PWD%/*} might be nice, but even then it
would be superficial until you managed to get back to the actual fs.
-mike

Attachment: signature.asc
Description: Digital signature


reply via email to

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