bug-bash
[Top][All Lists]
Advanced

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

Re: removing parent directory messes up path


From: Chris F.A. Johnson
Subject: Re: removing parent directory messes up path
Date: 19 Apr 2002 21:36:29 GMT
User-agent: slrn/0.9.7.3 (Linux)

In article <address@hidden>, b0iler _ wrote:
> Configuration Information:
> Machine: i386
> OS: linux
> Compiler: gcc -I/usr/src/packages/BUILD/bash-2.05
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
> -DCONF_OSTYPE='linux' -DCONF_MACHTYPE='i386-suse-linux' -DCONF_VENDOR='suse' 
> -DSHELL -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -I. -I/usr/include -I. 
> -I./include -I./lib -I/usr/include -O2 -mcpu=i486 -march=i486 -D_GNU_SOURCE 
> -Wall -pipe
> uname output: Linux linux 2.4.10-4GB #1 Fri Sep 28 17:20:21 GMT 2001 i686 
> unknown
> Machine Type: i386-suse-linux
> 
> Bash Version: 2.05
> Patch Level: 0
> Release Status: release
> 
> Description:
>       when you create a directory then delete the directory it is in while in 
> it 
> bash will mess up when you do cd ..
> 
> Repeat-By:
> 
>       linux:~ # cd /
>       linux:/ # mkdir problem
>       linux:/ # cd problem
>       linux:/problem # mkdir new
>       linux:/problem # cd new
>       linux:/problem/new # rm -rf /problem
>       linux:/problem/new # cd ../
>       linux:/problem/new # rm -rf /problem
>       linux:/problem/new # cd ..
>       cd: could not get current directory: getcwd: cannot access parent 
> directories: No such file or directory
>       cd: could not get current directory: getcwd: cannot access parent 
> directories: No such file or directory
>       linux:. # cd ..
>       chdir: could not get current directory: getcwd: cannot access parent 
> directories: No such file or directory
>       linux:.. # cd ..
>       linux:../.. # cd ..
>       linux:../../.. # cd ..
>       linux:../../../.. # cd ..
>       linux:../../../../.. # pwd
>       ../../../../..
>       linux:../../../../.. #

    What do you expect to happen if you sit on the limb of a tree and
    cut it off closer to the trunk?

    You're not going to get back the way you came; you're going
    to have to climb the tree again.

    Anything else is for cartoons.

-- 
        Chris F.A. Johnson                              address@hidden
        =================================================================
        address@hidden                http://cfaj.freeshell.org
        address@hidden        http://members.rogers.com/c.f.a.johnson



reply via email to

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