[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rm --do-what-i-mean
From: |
Rob Landley |
Subject: |
Re: rm --do-what-i-mean |
Date: |
Sat, 6 May 2023 10:46:29 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 |
On 5/6/23 09:48, Philip Rowlands wrote:
> As mentioned in the coreutils gotchas, rm cannot always delete directory
> hierarchies.
>
> I'm sure the folks on this list could write
>
> $ find -type d -exec chmod +wx {} +
>
> in their sleep but it's not the most obvious way out of unwritable
> directories.
>
> Feels like a long shot, but could we add a new option to rm to add wx bits to
> each directory encountered during a --recursive walk?
>
> Perhaps -ff for "double force"? :) I looked for prior art in the *BSDs, but
> found nothing.
Or just honor normal -f like toybox has done for the past decade?
https://github.com/landley/toybox/commit/5ce682e4f4b0
Rob