Subject: Re: Repalcement for grep(1)
To: Dag-Erling Smorgrav <des@flood.ping.uio.no>
From: Tim Vanderhoek <vanderh@ecf.utoronto.ca>
List: tech-userlevel
Date: 07/04/1999 08:38:34
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.