[Top][All Lists]

[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: Chet Ramey
Subject: Re: bug when 'cd ..' to a directory who's parent has been deleted
Date: Tue, 9 Feb 2016 14:55:57 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 2/9/16 2:43 PM, Odd Arne Beck wrote:

> Chet Ramey: I fear you have misunderstood me (OP). What I meant was,
> exactly as you say, the parent AND current folder has been removed, but
> from a different shell. It's also reprodusable if you do something like
> this from within the same shell:
> mkdir -p ~/a/b
> cd ~/a/b
> rm -rf ~/a
> cd ..
> Can you see if that produces the same error? It sure does here.

Sure, of course it does.  You're in an orphaned part of the file system;
the parent directory doesn't exist; there is no named path from the
current directory to the root; no value for PWD is correct.

``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]