From 3f4c627153a1cb972d73edb35027265a9a4b8922 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 22 Jun 2003 22:23:07 +0000 Subject: support z{e,f}grep --- usr.bin/grep/grep.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'usr.bin/grep/grep.c') diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c index 8ce4202eff9..f868066db09 100644 --- a/usr.bin/grep/grep.c +++ b/usr.bin/grep/grep.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: grep.c,v 1.3 2003/06/22 22:20:07 deraadt Exp $ + * $Id: grep.c,v 1.4 2003/06/22 22:23:06 deraadt Exp $ */ #include @@ -330,6 +330,17 @@ main(int argc, char *argv[]) break; case 'z': Zflag++; + switch(progname[1]) { + case 'e': + Eflag++; + break; + case 'f': + Fflag++; + break; + case 'g': + Gflag++; + break; + } break; } -- cgit v1.2.3