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: findSeverity: 3 - Normal
Item Group: Wrong resultStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Open/Closed: Closed
Release: 4.2.18Fixed 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 File(s):
   
   
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 click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 6 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 07 Mar 2005 11:54:26 PM UTCjayOpen/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.2.19
Mon 07 Mar 2005 10:48:55 PM UTCjaySummarywrong result of "find -execdir {} +" compared to -exec=>wrong result of "find -exec {} +" compared to "-exec {} ;"
Mon 07 Mar 2005 10:47:30 PM UTCjayAttached File-=>Added sv-bug-12230-proposed-fix.patch, #2289
Mon 07 Mar 2005 10:47:29 PM UTCjayStatusNone=>Fixed
  Assigned toNone=>jay

Back to the top


Powered by Savane 3.1-cleanup1