diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-22 22:23:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-22 22:23:07 +0000 |
commit | 3f4c627153a1cb972d73edb35027265a9a4b8922 (patch) | |
tree | b7f8915e58d23210dda92dca3e78495ac57d6ffe /usr.bin/grep | |
parent | 17da047b476b8817a9de84c52faf3ac73c8fb7fd (diff) |
support z{e,f}grep
Diffstat (limited to 'usr.bin/grep')
-rw-r--r-- | usr.bin/grep/grep.c | 13 |
1 files changed, 12 insertions, 1 deletions
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 <sys/types.h> @@ -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; } |