[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regression: "find dir/. -type d -empty -delete" claims 'unsuccessful
From: |
Eric Blake |
Subject: |
Re: Regression: "find dir/. -type d -empty -delete" claims 'unsuccessful', breaking scripts. |
Date: |
Mon, 18 Nov 2013 17:15:48 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
On 11/18/2013 04:55 PM, Linda A. Walsh wrote:
> In coreutils 8.21-7.1.3.
>
> It has been standard to use "." in a directory to mean it's contents
> on a recursive or copy (compare cp -al src/. dst/.).
>
> However, "find dir/. -type d -empty -delete" works, but
> exits with a failure code causing scripts to break.
This behavior is required by POSIX. Sorry.
> POSIX is dead
Ranting against POSIX won't buy you any friends.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature