Date: Sun, 4 Jul 1999 08:38:34 -0400 From: Tim Vanderhoek <vanderh@ecf.utoronto.ca> To: Dag-Erling Smorgrav <des@flood.ping.uio.no> Cc: Jamie Howard <howardjp@wam.umd.edu>, freebsd-hackers@FreeBSD.org, tech-userlevel@netbsd.org, tech@openbsd.org Subject: Re: Repalcement for grep(1) Message-ID: <19990704083834.B48190@mad> In-Reply-To: <xzp4sjkwr90.fsf@flood.ping.uio.no>; from Dag-Erling Smorgrav on Sun, Jul 04, 1999 at 02:09:47PM %2B0200 References: <Pine.GSO.4.10.9907031513150.17705-100000@rac9.wam.umd.edu> <xzp4sjkwr90.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 04, 1999 at 02:09:47PM +0200, Dag-Erling Smorgrav wrote: > > This should be trivial to translate to C. The only non-trivial part of > implementing this stuff is that you have to trick getopt() to make > -<num> work. You'll have to put a : at the start of your getopt() > string and examine every argument getopt() complains about. Actually, the (FreeBSD) getopt(3) manpage includes at its end an example showing how to handle -<num> options. This is preceeded by bold letters: "backwards compatibility only". HTH. HAND. :) -- This is my .signature which gets appended to the end of my messages. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990704083834.B48190>