Subject: Re: Little prob with rm
To: David Maxwell 401 Richmond West <firstname.lastname@example.org>
From: Dave Burgess <email@example.com>
Date: 10/29/1994 14:06:19
> > > Found an interesting, er..., problem (?) with rm the other day. Doing
> > > an 'rm -rf' on some directory, say '/tmp/fred', by typing 'rm -rf
> > > /tmp/fred', works fine, but typing 'rm -rf /tmp/fred/' complains that
> > > /tmp/fred/ is a directory.
> As mentioned, a BSDism. I always believed it was to protect you from null
> variables appended to a directory name with a / on the end (Such as
> in shell scripts.) Rather serious difference between removing a sub-dir
> and everything under it, as compared to the parent and everything under
> it :-)
Fix the man page, and it becomes a feature.
In fact, advertise it right and it becomes an advantage.
I LIKE it!