bugfindutils - Bugs: bug #32519, Back-quoted `uuidgen` in -exec...

 
 

bug #32519: Back-quoted `uuidgen` in -exec part is not executed everytime

Submitted by:  Floyd Wan <fwoncn>
Submitted on:  Thu 17 Feb 2011 05:13:43 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: Wrong resultStatus: Invalid
Privacy: PublicAssigned to: Eric Blake <ericb>
Originator Name: Open/Closed: Closed
Release: 4.4.2Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 17 Feb 2011 05:41:51 PM UTC, comment #1:

Your problem is that you want to run multiple commands on each -execdir (both unzip and uuidgen), but -execdir can only run a single command. The solution is to wrap things in yet another command - a shell that can then exec your multiple commands.

Eric Blake <ericb>
Project AdministratorIn charge of this item.
Thu 17 Feb 2011 05:13:43 PM UTC, original submission:

Here is my command:
find -name *.zip -execdir unzip {} -d `uuidgen -r` \;
I'm expecting it to unzip all zip files and put the extracted files into different directories whose names are generated by uuidgen. But the back-quoted uuidgen is apparently not exectued everytime. As a result, I got prompts asking me to avoid the same name.
This command which does nothing meaningful:
find -name *.zip -exedir uuidgen -r \;
uuidgen here is executed everytime, however.

Floyd Wan <fwoncn>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ericb (Posted a comment)
  • -unavailable- added by fwoncn (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 17 Feb 2011 05:41:51 PM UTCericbStatusNone=>Invalid
      Assigned toNone=>ericb
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1