This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Xargs positioning the arguments in a command -- is this a bug or a feature?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Eric Blake on 8/27/2005 6:08 PM:
>
> The upcoming findutils-4.2.25-1 (whenever upstream releases 4.2.25)
> better documents this. -i is being deprecated in favor of POSIX -I, which
> requires an argument, whereas the non-standard -i treated its
> argument as optional. So what may be happening (although you'd
> actually have to debug to see for sure) is that -i -n treats -n as the
> string to replace, instead of the default {}. But that sounds odd, and
> it may be an upstream bug; I'll investigate further.
Known upstream issue, still no behavior change in the upcoming 4.2.25:
http://savannah.gnu.org/bugs/?func=detailitem&item_id=13041
Also, a POSIX interpretations request was recently raised:
http://www.opengroup.org/austin/mailarchives/ag/msg08430.html
- -i implies -l (or in terms of their POSIX replacements, -I implies -L),
while -L and -n are mutually exclusive. Whichever you specify first will
be cancelled by what you specify second.
- --
Life is short - so eat dessert first!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDEQUm84KuGfSFAYARAhNCAKCZCsrM/ivwKT5FMacSmXz2stAOoACfTFkW
LhjM9iwvdD5AkpSdVYZhMvI=
=QhWQ
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/