Re: Regression: "find dir/. -type d -empty -delete" claims 'unsuccessful', breaking scripts.

2013-11-18 Thread Linda Walsh
On 18/11/2013 20:04, Eric Blake wrote: On 11/18/2013 06:20 PM, Linda Walsh wrote: >>> 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 requires that whatever you pas

Re: Regression: "find dir/. -type d -empty -delete" claims 'unsuccessful', breaking scripts.

2013-11-18 Thread Eric Blake
On 11/18/2013 05:25 PM, Linda Walsh wrote: > They don't require it for the case of "find ."? > > or cp -al a/. b/. > > ? I couldn't parse this question. > > > Are you saying we need an alternate core utils? Nothing is stopping you from writing your own software that behaves the way you want.

Re: Regression: "find dir/. -type d -empty -delete" claims 'unsuccessful', breaking scripts.

2013-11-18 Thread Eric Blake
On 11/18/2013 06:20 PM, Linda Walsh wrote: >>> >>> 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 requires that whatever you pass on the command line ("dir/.") be pass

Re: Regression: "find dir/. -type d -empty -delete" claims 'unsuccessful', breaking scripts.

2013-11-18 Thread Linda Walsh
On 18/11/2013 16:15, Eric Blake wrote: 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

Re: Regression: "find dir/. -type d -empty -delete" claims 'unsuccessful', breaking scripts.

2013-11-18 Thread Dmitry V. Levin
On Mon, Nov 18, 2013 at 03:55:52PM -0800, 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 Does it? $ mkd

Re: Regression: "find dir/. -type d -empty -delete" claims 'unsuccessful', breaking scripts.

2013-11-18 Thread Linda Walsh
They don't require it for the case of "find ."? or cp -al a/. b/. ? Are you saying we need an alternate core utils?

Re: Regression: "find dir/. -type d -empty -delete" claims 'unsuccessful', breaking scripts.

2013-11-18 Thread Eric Blake
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 causin

Regression: "find dir/. -type d -empty -delete" claims 'unsuccessful', breaking scripts.

2013-11-18 Thread Linda A. Walsh
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. Surprisingly, if one could cd to the d