[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rm --do-what-i-mean
From: |
Philip Rowlands |
Subject: |
rm --do-what-i-mean |
Date: |
Sat, 06 May 2023 15:48:07 +0100 |
User-agent: |
Cyrus-JMAP/3.9.0-alpha0-386-g2404815117-fm-20230425.001-g24048151 |
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.
Cheers,
Phil
- rm --do-what-i-mean,
Philip Rowlands <=