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 [email protected] http://cnswww.cns.cwru.edu/~chet/