From owner-cvs-all Wed May 1 20:26:28 2002 Delivered-To: cvs-all@freebsd.org Received: from finntroll.newgold.net (durham-ar1-4-64-252-019.durham.dsl-verizon.net [4.64.252.19]) by hub.freebsd.org (Postfix) with SMTP id 732AA37B41D for ; Wed, 1 May 2002 20:26:23 -0700 (PDT) Received: (qmail 1578 invoked by uid 1001); 2 May 2002 03:29:11 -0000 Date: Thu, 2 May 2002 03:29:11 +0000 From: "J. Mallett" To: "J. Mallett" Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/xargs xargs.1 xargs.c Message-ID: <20020502032910.GA21076@FreeBSD.ORG> References: <200205020242.g422gYg56815@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200205020242.g422gYg56815@freefall.freebsd.org> User-Agent: Mutt/1.3.27i Organisation: The FreeBSD Project 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 On Wed, May 01, 2002 at 07:42:34PM -0700, J. Mallett wrote: > jmallett 2002/05/01 19:42:34 PDT > > Modified files: > usr.bin/xargs xargs.1 xargs.c > Log: > Make -J a proper flag internal to the code (rather than just check for > use of replstr and lack of Iflag), and add -R, which when given with > -I controls the number of arguments on which replacement will be done. > > Some people happen to think it's idiotic to limit to 5 arguments, so > let the user override it if they like. I want to add -i to be compatible with GNU, but I can't figure out how getopt(3) can best be used to deal with an option that may-or-may-not take an argument. I tried to prefix optstring with : and catch ':' and so on, but it doesn't seem to work as I expected it. Is that the best way? If so, I'll go ahead and do what it takes to make it work, but that seems really yucky. Thoughts? Thanks! -- jmallett@FreeBSD.org | C, MIPS, POSIX, UNIX, BSD, IRC Geek. http://www.FreeBSD.org | The Power to Serve "I've never tried to give my life meaning by demeaning you." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message