Subject: Re: bug#21084: rm appears to no longer be POSIX compliant (as of 2013 edition) re: deleting empty dirs and files under <path>/.

From: Bernhard Voelker <[email-masked]>
Date: Sat, 1 Aug 2015 23:17:09 +0200

On 08/01/2015 05:13 AM, Linda Walsh wrote:
> [...] for me, just the special option to allow "." or dir/. is far more
> important.

You're discussing several aspects at once - '.' as operand, stopping
the removal at file system boundaries, etc. - but this all sounds to me
as if you simply wanted this one, right?

  $ find '.' -mindepth 1 -xdev -delete

Have a nice day,
Berny