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/