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