[svlug] Removing current working directory

S step1b at cyberspace.org
Sun Jan 6 21:49:01 PST 2002


 As far as I know, one cannot delete the present working
 directory.  I observed the following strange behaviour: (rh7.1)
 
 [root at localhost root]# mkdir testdir
 [root at localhost root]# cd testdir
 [root at localhost testdir]# rmdir .
 rmdir: `.': Invalid argument
 [root at localhost testdir]# rmdir ../testdir/
 [root at localhost testdir]#
[root at localhost testdir]# man rmdir
 shell-init: could not get current directory: getcwd: cannot access parent
 directories: No such file or directory
 shell-init: could not get current directory: getcwd: cannot access parent
 directories: No such file or directory
 shell-init: could not get current directory: getcwd: cannot access parent
 directories: No such file or directory
 chdir: could not get current directory: getcwd: cannot access parent
 directories: No such file or directory
 RMDIR(1)                       FSF                       RMDIR(1)
 ..
 ..
 q
[root at localhost testdir]# cd
[root at localhost root]# man rmdir
 --doesnt crib here --
 
 Any comments?




More information about the Svlug mailing list