Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2002 03:29:11 +0000
From:      "J. Mallett" <jmallett@FreeBSD.ORG>
To:        "J. Mallett" <jmallett@FreeBSD.org>
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>
In-Reply-To: <200205020242.g422gYg56815@freefall.freebsd.org>
References:  <200205020242.g422gYg56815@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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