bugfindutils - Bugs: bug #11625, Wrong return status for -exec ......

 
 

bug #11625: Wrong return status for -exec ... \; when command fails

Submitter:  James Youngman <jay>
Submitted:  Mon 17 Jan 2005 08:18:05 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Geoff Clare Open/Closed:  Closed
Release:  None Fixed Release:  4.2.12
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 23 Jan 2005 12:29:04 AM UTC, comment #2: 

You can download a release of findutils in which this problem is
fixed from ftp://alpha.gnu.org/gnu/findutils.

The releases on alpha.gnu.org are for testing purposes, so please
take the time to download the release and verify that your
problem has been solved.  Once the release has been sufficiently
tested, it can be uploaded to ftp.gnu.org for everybody to use it.

James Youngman <jay>
Group administrator
Mon 17 Jan 2005 09:14:00 PM UTC, comment #1: 

Fixed.   It also turned out that the -quit predicate didn't flush any pending unexecuted command; I fixed that too.

James Youngman <jay>
Group administrator
Mon 17 Jan 2005 08:18:05 PM UTC, original submission:  

Geoff says :-

However, I did notice one difference to how the old "-exec ... \;" works.  When any of the executions have a non-zero exit status, the final exit status of find is now non-zero.  This is only supposed to happen with "-exec ... +" (where it is done to make up for the primary always evaluating as true).

(this bug report relates to the CVS code, not to any released code)

James Youngman <jay>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-01-23 jay Open/ClosedOpen Closed
    Fixed ReleaseNone 4.2.12
2005-01-17 jay StatusNone Fixed

Back to the top

Powered by Savane 3.12.
Corresponding source code