[hackers] [sbase] grep: reset inverse flag if both are set || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 22 Nov 2014 00:07:58 +0100

commit 5c821d43efe1cc1364ce60990e6fe38d571a9278
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Nov 21 23:29:38 2014 +0100

    grep: reset inverse flag if both are set

diff --git a/grep.c b/grep.c
index 14ddd68..c30174d 100644
--- a/grep.c
+++ b/grep.c
_AT_@ -61,6 +61,7 @@ main(int argc, char *argv[])
                 break;
         case 'H':
                 Hflag = 1;
+ hflag = 0;
                 break;
         case 'e':
                 arg = EARGF(usage());
_AT_@ -80,6 +81,7 @@ main(int argc, char *argv[])
                 break;
         case 'h':
                 hflag = 1;
+ Hflag = 0;
                 break;
         case 'c':
         case 'l':
Received on Sat Nov 22 2014 - 00:07:58 CET

This archive was generated by hypermail 2.3.0 : Sat Nov 22 2014 - 00:12:22 CET