bug-bash
[Top][All Lists]
Advanced

[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 :) 

address@hidden:/tmp$ mkdir foo
mkdir: cannot create directory `foo': File exists
address@hidden:/tmp$ cd foo
address@hidden:/tmp/foo$ mkdir foo
address@hidden:/tmp/foo$ cd foo
address@hidden:/tmp/foo/foo$ rm -rf ../../foo/
address@hidden:/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
address@hidden:.$ cd ..
chdir: could not get current directory: getcwd: cannot access parent 
directories: No such file or directory
address@hidden:..$ cd ..
address@hidden:../..$ cd ..
address@hidden:../../..$ cd ..
address@hidden:../../../..$ cd ..
address@hidden:../../../../..$ cd ..
address@hidden:../../../../../..$ ls
tmp  etc  dev  proc  root  bin  sbin  mnt  boot  lib  home  usr  var  cdrom  
floppy  initrd  opt  lost+found
address@hidden:../../../../../..$ cd ..
address@hidden:../../../../../../..$ ls
tmp  etc  dev  proc  root  bin  sbin  mnt  boot  lib  home  usr  var  cdrom  
floppy  initrd  opt  lost+found
address@hidden:../../../../../../..$


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










reply via email to

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