Is this a bug or rather a feature?

feiliu@aa.eps.jhu.edu
Sat, 18 Dec 1999 01:29:07 -0500 (EST)


# mkdir test
# touch 1;touch 2;touch 3
# mkdir hello
# cd hello
# rmdir ./
# ls
total 0
# cd ..
# mkdir hello
# cd hello
# rmdir ../
rmdir: ..: Directory not empty
# rm -rf ..
rm: cannot remove `.' or `..'
# rm -rf .
rm: cannot remove `.' or `..'

comparing the behavior of "rm -rf" and "rmdir", they are not
very consistent.

Fei

*~~~~~~~~~~~~~~~~~~~~~+_____________________+~~~~~~~~~~~~~~~~~~~*
* Email:afei@jhu.edu | WWW: http://aa.eps.jhu.edu/~feiliu *
* (410)889-9876(H) | Johns Hopkins Univ. | (410)516-7047(O) *
*-------------------+_____________________+-----------------*

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/