bug#21084: rm appears to no longer be POSIX compliant (as of 2013 editio
From:
Bernhard Voelker
Subject:
bug#21084: rm appears to no longer be POSIX compliant (as of 2013 edition) re: deleting empty dirs and files under <path>/.
Date:
Sat, 1 Aug 2015 23:17:09 +0200
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
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