bugfindutils - Bugs: bug #12230, wrong result of "find -exec...

 
 

bug #12230: wrong result of "find -exec {} +" compared to "-exec {} ;"

Submitter:  Dmitry V. Levin <ldv>
Submitted:  Sun 06 Mar 2005 05:42:35 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Open/Closed:  Closed
Release:  4.2.18 Fixed Release:  4.2.19
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 07 Mar 2005 10:48:55 PM UTC, comment #2: 

Modified the title to more clearly suggest the full extent of the problem.

James Youngman <jay>
Group administrator
Mon 07 Mar 2005 10:47:29 PM UTC, comment #1: 

The problem is that the "todo" flag in the state information for buildcmd.c was initially set to 1 because we had pushed "echo" and "==" onto the arg list.   The attached patch should solve the problem.    The test suite now includes a test case for this bug, too.   The bug also affected "-exec echo == {} +", it was not specific to "-execdir.

James Youngman <jay>
Group administrator
Sun 06 Mar 2005 05:42:35 PM UTC, original submission:  

The "find -execdir {} +" operation produces unexpected empty call.

For example,
$ mkdir tmp && touch tmp/file
$ (cd tmp && find -type f -exec echo == '{}' +)
== ./file
$ (cd tmp && find -type f -execdir echo == '{}' +)
==
== ./file

Note the single "==" here.

Dmitry V. Levin <ldv>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #2694:  sv-bug-12230-proposed-fix.patch added by jay (1KiB - text/x-patch - Proposed fix (1))

 

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 6 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-03-07 jay Open/ClosedOpen Closed
    Fixed ReleaseNone 4.2.19
2005-03-07 jay Summarywrong result of &quot;find -execdir {} +&quot; compared to -exec wrong result of "find -exec {} +" compared to "-exec {} ;"
2005-03-07 jay Attached File- Added sv-bug-12230-proposed-fix.patch, #2289
2005-03-07 jay StatusNone Fixed
    Assigned toNone jay

Back to the top

Powered by Savane 3.13-3230.
Corresponding source code