[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #36452] xargs needs "-I" (eye) last ...
From: |
Kevin |
Subject: |
[bug #36452] xargs needs "-I" (eye) last ... |
Date: |
Fri, 11 May 2012 17:16:29 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19 |
URL:
<http://savannah.gnu.org/bugs/?36452>
Summary: xargs needs "-I" (eye) last ...
Project: findutils
Submitted by: dalecosp
Submitted on: Fri 11 May 2012 05:16:28 PM GMT
Category: xargs
Severity: 3 - Normal
Item Group: Wrong result
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.2
Fixed Release: None
_______________________________________________________
Details:
I ran an xargs(1) command in the BSD implementation with success and posted
the result at [url=http://board.phpbuilder.com/board/showthread.php?t=10384409
PHPBuilder]. Lo & behold, it didn't work in a seven-year old version of GNU
xargs(1) ... unless we changed the invocation to put "-I" last, before
_argument_.
On GNU IRC's #gnu, user leo_rockway tested with findutils version 4.4.2, which
appears to be the latest available on most(?) public
[url=http://ftp.gnu.org/pub/gnu/findutils/ FTP sites].
To recap, this works in a non-GNU xargs(1) implementation:
find . -type f -print0 | xargs -I {} -0 -L 1 convert -compress JPEG -quality
75 {} {}
However, with GNU xargs(1) <=4.4.2, this results in convert complaining:
unable to open image `{}': @ error/blob.c/OpenBlob/2489.
missing an image filename `./gnu+linux.png' @
error/convert.c/ConvertImageCommand/2940.
Changing the invocation of GNU xargs(1) to this:
find . -type f -print0 | xargs -0 -L 1 -I {} convert -compress JPEG -quality
75 {} {}
Allows convert to function normally and complete the command (i.e. it gets the
correct arguments). The only difference seems to be the location of the "-I"
parameter.
I do apologize if this has been fixed since 4.4.2 --- I see that several other
'releases' seem to be in the *Fixed Release* selector, but, as I mentioned, I
don't see them on the public FTP sites. I'm a bit of a "newb" where GNU/Linux
are concerned, having spent years with the BSD family of OSen. Thanks for
your time and contributions.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36452>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #36452] xargs needs "-I" (eye) last ...,
Kevin <=