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

 
 

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

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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

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 "find -execdir {} +" 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.5