Subject: Re: bug#45924: RFE: rmdir -r: recursively remove [empty] directories under the target.

From: Paul Eggert <[email-masked]>
Date: Sun, 17 Jan 2021 14:18:58 -0800

On 1/16/21 4:29 PM, L A Walsh wrote:
> Yes, you could do it some other way, like by using 'find'

That's what I'd do, yes. 'find DIR -depth -type d -exec rmdir {} +'. I 
doubt whether it's worth hacking on this at the C level (complicating 
the documentation too) when there's such a simple and portable way to do 
this unusual task already.