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: Odd Beck
Subject: Re: bug when 'cd ..' to a directory who's parent has been deleted
Date: Tue, 9 Feb 2016 07:16:47 +0100

Well, in all fareness, this is highly unlikely that it would happen, but it did happen to me while I was cleanup up some rubbish in my filesystem. It wasn't a big deal as I quickly realized what was happening.

Here's the way I reproduced it:
----------------------------------------
Terminal1:
mkdir -p ~/a/b
cd ~/a/b

Terminal2:
cd ~
rm -rf a/

Terminal1:
cd ..
cd: error retrieving current directory..................
----------------------------------------

It might not be a huge issue, but I though I'd report it.

Best regards

Odd Beck

On Mon, Feb 8, 2016 at 7:48 PM, Chet Ramey <address@hidden> wrote:
On 2/8/16 11:34 AM, Linda Walsh wrote:

>> Why would that be more reasonable than anything else?  It references a
>> path that doesn't exist.
>>
>>
> Um...Not exactly.  As long as there's a handle open to the previous path,
> it still exists (at least on linux and unix).

The actual filesystem objects still exist, but the named references to them
(pathnames) do not.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/


reply via email to

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