rm(1) bug, possibly serious

Bob Johnson fbsdlists at gmail.com
Wed Sep 26 13:31:16 PDT 2007


On 9/26/07, Dan Nelson <dnelson at allantgroup.com> 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 :)

That's what I meant... thanks. Applies to bash, too.

- Bob


More information about the freebsd-stable mailing list