Subject: Re: Bug: rm -rf /*/*

From: Robert Swinford <[email-masked]>
Date: Tue, 30 Nov 2021 14:08:35 -0600

BTW, zsh globbing doesn’t exhibit this behavior!  It seems it is only a problem in bash.

--
----------------------------------------------
ROBERT SWINFORD
----------------------------------------------
[email-masked]
m: (405) 209-2339
----------------------------------------------

> On Nov 30, 2021, at 1:58 PM, Robert Swinford <[email-masked]> wrote:
> 
> TWIMC:
> 
> This seems like a bug: https://twitter.com/nixcraft/status/1465599844299411458
> 
> I was able to replicate the behavior in a container with coreutils version 8.30.
> 
> Interestingly, however, rm -rf // only does the following:
> 
> "root@test:~# rm -rf //
> rm: it is dangerous to operate recursively on '//' (same as '/')
> rm: use --no-preserve-root to override this failsafe"
> 
> I believe illumos has already solved this problem in a POSIX compliant fashion, see: https://www.youtube.com/watch?v=l6XQUciI-Sc&t=4903s
> 
> Appreciate your attention to this bug!
> 
> --
> ----------------------------------------------
> ROBERT SWINFORD
> ----------------------------------------------
> [email-masked]
> m: (405) 209-2339
> ----------------------------------------------
>