bugfindutils - Bugs: bug #28872, Mistake in "10.2.1 Problems...

 
 

bug #28872: Mistake in "10.2.1 Problems with -exec and filenames"

Submitter:  None
Submitted:  Fri 12 Feb 2010 10:12:48 AM UTC
   
 
Category:  documentation Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Martin v. Wittich Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  4.5.6b
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 20 Feb 2010 07:57:38 PM UTC, comment #1: 

Fixed in the 4.4.x tree.
Fixed in the 4.5.x tree.


James Youngman <jay>
Group administrator
Fri 12 Feb 2010 10:12:48 AM UTC, original submission:  


     # safer
     find -exec sh -c 'something "$@"' {} \;
     find -execdir sh -c 'something "$@"' {}\;


should probably be


     # safer
     find -exec sh -c 'something "$@"' sh {} \;
     find -execdir sh -c 'something "$@"' sh {} \;


as sh uses it's first argument as $0:


$ sh -c 'echo "$@"' one two three
two three
$ sh -c 'echo "$0" "$@"' one two three
one two three
$ sh -c 'echo "$@"' sh one two three
one two three


Anonymous

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-31 jay Open/ClosedOpen Closed
        Fixed ReleaseNone 4.5.6b
    2010-02-20 jay StatusNone Fixed
        Assigned toNone jay

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code