Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Apr 2002 20:31:54 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        "J. Mallett" <jmallett@FreeBSD.org>, Garrett Wollman <wollman@lcs.mit.edu>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/xargs Makefile strnsubst.c xargs.1 xargs.c
Message-ID:  <p05111719b8e666817fbd@[128.113.24.47]>
In-Reply-To: <20020420000901.GE16783@FreeBSD.ORG>
References:  <200204192328.g3JNSsA87474@freefall.freebsd.org> <200204192345.g3JNjqs79012@khavrinen.lcs.mit.edu> <20020420000901.GE16783@FreeBSD.ORG>

next in thread | previous in thread | raw e-mail | index | archive | help
At 12:09 AM +0000 4/20/02, J. Mallett wrote:
>On Fri, Apr 19, 2002 at 07:45:52PM -0400, Garrett Wollman wrote:
>  > The `-J' option was implemnted because the standard `-I' and `-L'
>>  options are inadequate.  The semantics are different.
>
>Because of the size limitations?  Okay, well, then -J could be
>implemented in terms of an unlimited -I case, but this would
>change behaviour due to the fact that -I does substring
>substitution (and other more intelligent things, imo), and so
>something like:
>	xargs -J% echo foo%foo % foo-foo
>
>would have drastically different behaviour.
>
>Still, I'd like to have a non-limited version of -I in
>xargs(1)...  What are the thoughts regarding that?

It is good to have -I, because it is standard and available on
many platforms.  -J addresses a different goal than -I.  We
deliberately added -J to fix a different problem (and to avoid
a special-purpose change to 'cp', as I recall).  We would have
added -I at the same time as -J, but it turned out that -J was
easy to implement and -I would have taken more work, so we only
did -J at the time.

There is no conflict between -I and -J, as long as they are left
as separate options.

-- 
Garance Alistair Drosehn            =   gad@eclipse.acs.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05111719b8e666817fbd>