rm -rf and recursive nothing

Justin C. Sherrill justin at shiningsilence.com
Thu Jul 20 19:39:05 PDT 2006


I noticed something strange.  I unpacked the pkgsrc tarball to the wrong
directory, and moved the contents.  After copying it up, I deleted the
directory, which was empty.

dev# ls -la pkgsrc/
total 3
drwxr-xr-x   2 root  wheel  1024 Jul 20 22:27 .
drwxr-xr-x  54 root  wheel  1536 Jul 20 22:27 ..
dev# rm pkgsrc
rm: pkgsrc: is a directory
dev# rm -rf pkgsrc
recursively remove pkgsrc?

However, I still got the "recursively remove <dirname>" warning that comes
from trying to delete more than 3 files.  It lists a total of 3, but only
names 2.  This was on a 1.4.4 system







More information about the Bugs mailing list