Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2007 16:31:15 -0400
From:      "Bob Johnson" <fbsdlists@gmail.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: rm(1) bug, possibly serious
Message-ID:  <54db43990709261331h66878faejf757a9fb4b92ece6@mail.gmail.com>
In-Reply-To: <20070926171503.GC3062@dan.emsphone.com>
References:  <54db43990709251838q68bdba95iefefb43029761c34@mail.gmail.com> <200709261447.l8QElua3058752@lurza.secnetix.de> <20070926171503.GC3062@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/26/07, Dan Nelson <dnelson@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54db43990709261331h66878faejf757a9fb4b92ece6>