[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
wierd bash bug
From: |
bain |
Subject: |
wierd bash bug |
Date: |
Tue, 1 Apr 2003 18:16:53 +0100 |
hiya
i would like to report a wierd problem with bash, ive not tested any other
shells, but
at the same time i dont know where to report this too, i dont think that this
should be like this
i was thinking it should just send you back to / if it cant access parent dir
WITH warning
instead of doing the following:
ive known about this problem for a long time but i thought someone might fix it
:) but after a year
nobody has fixed it and i dont think this is the way it should be somehow :)
bain@meshell:/tmp$ mkdir foo
mkdir: cannot create directory `foo': File exists
bain@meshell:/tmp$ cd foo
bain@meshell:/tmp/foo$ mkdir foo
bain@meshell:/tmp/foo$ cd foo
bain@meshell:/tmp/foo/foo$ rm -rf ../../foo/
bain@meshell:/tmp/foo/foo$ 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
bain@meshell:.$ cd ..
chdir: could not get current directory: getcwd: cannot access parent
directories: No such file or directory
bain@meshell:..$ cd ..
bain@meshell:../..$ cd ..
bain@meshell:../../..$ cd ..
bain@meshell:../../../..$ cd ..
bain@meshell:../../../../..$ cd ..
bain@meshell:../../../../../..$ ls
tmp etc dev proc root bin sbin mnt boot lib home usr var cdrom
floppy initrd opt lost+found
bain@meshell:../../../../../..$ cd ..
bain@meshell:../../../../../../..$ ls
tmp etc dev proc root bin sbin mnt boot lib home usr var cdrom
floppy initrd opt lost+found
bain@meshell:../../../../../../..$
ive done more testing and ive found some intresting things :)
csh doesnt do it..
and the other thing was i did this
cd /tmp
mkdir foo
cd foo
mkdir foo
cd foo
rm -rf ../../foo
for i in `seq 1 1367`; do cd .. ; echo $i ; pwd ; done
i noticed it reset at 1366 ;)
i wish you luck
thanks for your suport, and the great shell :) feel free to respond if you like
this has got me verry curious :)
from Bain
[Prev in Thread] |
Current Thread |
[Next in Thread] |