bugfindutils - Bugs: bug #34083, [feature request] analog of -I...

 
 

bug #34083: [feature request] analog of -I REPLACE-STR without -l 1 restriction

Submitted by:  gregory <poisson>
Submitted on:  Sat 20 Aug 2011 08:06:59 PM UTC  
 
Category: xargsSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Originator Name: gregoryOpen/Closed: Open
Release: NoneFixed Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Thu 25 Aug 2011 02:30:11 PM UTC, comment #3:

Just checked that such an option is not specified in POSIX (2004 or 2008) so scripts trying to be portable should not use it anyway and use the sh -c trick, for example. This is an argument for not implementing it and closing the report.

gregory <poisson>
Mon 22 Aug 2011 04:15:17 PM UTC, comment #2:

Well, it would save a few (normally 1) sh invocations, and would be somewhat easier to figure out and use. (The example you refer to only appears in findutils 4.4.0.). However, the trick/solution you propose is very good performance-wise compared to the use of the -I option. Thanks for the tip.

gregory <poisson>
Sun 21 Aug 2011 10:41:03 AM UTC, comment #1:

What advantage would this additional option offer over using the "sh -c" trick given in the EXAMPLES section of the GNU xargs manual page?

James Youngman <jay>
Project Administrator
Sat 20 Aug 2011 08:06:59 PM UTC, original submission:

Hello,

I think, it is a pity, that the GNU version does not have option -J REPLACE-STR that does not imply -l 1 (like the BSD version, see, e.g.,
http://www.openbsd.org/cgi-bin/man.cgi?query=xargs&apropos=0&sektion=1&manpath=OpenBSD+Current&arch=i386&format=html
)
Maybe, you could consider addind it.

Many thanks,
Gregory

gregory <poisson>

 

(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 jay (Posted a comment)
  • -unavailable- added by poisson (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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup