rm -rf and recursive nothing
Sascha Wildner
saw at online.de
Fri Jul 21 04:14:19 PDT 2006
Oliver Fromme wrote:
Justin C. Sherrill wrote:
> 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?
This might be a dumb question, but why don't you use rmdir?
rmdir is the UNIX command to remove (empty) directories.
Personally I have an alias rd=rmdir (and md=mkdir), which
is a left-over from my old DOS days. :-)
By the way, shouldn't -f override any previous -i or -I
option? At least that's what I would expect. You don't
type -f without a reason.
This has been discussed (to death) before. I'd be all in for that, but
other people weren't.
Sascha
--
http://yoyodyne.ath.cx
More information about the Bugs
mailing list