bug#12339: Bug: rm -fr . doesn't dir depth first deletion yet it is
From:
Alan Curry
Subject:
bug#12339: Bug: rm -fr . doesn't dir depth first deletion yet it is
Date:
Mon, 3 Sep 2012 03:40:58 -0500 (GMT+5)
Jim Meyering writes:
>
> Alan Curry wrote:
>
> > rm -rf $PWD, meaning basically the same thing as rm -rf ., works, and leaves
>
> If you use that, in general you would want to add quotes,
> in case there are spaces or other shell meta-characters:
>
> rm -rf "$PWD"
Well, when I do it I'm in zsh which has fixed that particular Bourne shell
design error.
--
Alan Curry