Dan Nelson wrote:

In the last episode (Sep 26), Oliver Fromme said:
Bob Johnson wrote:

> Maybe. But I expect that the behavior for "rm -rf .." is there so
> that things don't get REALLY astonishing when you do "rm -rf *".

The expansion of "*" does not include "." or "..".

Under /bin/sh, ".*" does match "." and "..", so be careful :)

.??* is a standard workaround that works most of the time. Won't match .a .b etc but such antisocial files are the exception, one might hope.

--Alex

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to