From owner-cvs-all Fri Apr 19 17:32: 4 2002 Delivered-To: cvs-all@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id EB53337B419; Fri, 19 Apr 2002 17:31:56 -0700 (PDT) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g3K0VtRF465244; Fri, 19 Apr 2002 20:31:55 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20020420000901.GE16783@FreeBSD.ORG> References: <200204192328.g3JNSsA87474@freefall.freebsd.org> <200204192345.g3JNjqs79012@khavrinen.lcs.mit.edu> <20020420000901.GE16783@FreeBSD.ORG> Date: Fri, 19 Apr 2002 20:31:54 -0400 To: "J. Mallett" , Garrett Wollman From: Garance A Drosihn Subject: Re: cvs commit: src/usr.bin/xargs Makefile strnsubst.c xargs.1 xargs.c Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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