lkml.org 
[lkml]   [2001]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
On Tue, Jan 09, 2001 at 02:55:15AM +0100, Andrea Arcangeli <andrea@suse.de> wrote:
> > [wakko@<removed>:/home/wakko/test] rmdir "`pwd`"
> > rmdir: /home/wakko/test: Invalid argument
>
> Some other OS with a yet different retval? :)

It can be much worse (irix-6.5.4):

bash# mkdir x; cd x; rmdir "`pwd`"
/x: Can't remove current directory or ..

Here the error message makes sense - but is totally wron in this case :(

And here is linux-2.2.18:

cerebro:~# mkdir x; cd x;rmdir "`pwd`"
cerebro:~/x# ls -la
total 6
drwxr-x--- 0 root root 35 Jan 9 05:54 .
drwx------ 69 root root 5372 Jan 9 05:54 ..
cerebro:~/x# cd
cerebro:~# ls -la x
ls: x: No such file or directory

So, no, linux certainly does NOT remove "." ;)

--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg@opengroup.org |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.126 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site