grep: reset inverse flag if both are set

This commit is contained in:
Hiltjo Posthuma 2014-11-21 23:29:38 +01:00 committed by sin
parent e6df377504
commit 5c821d43ef
1 changed files with 2 additions and 0 deletions

2
grep.c
View File

@ -61,6 +61,7 @@ main(int argc, char *argv[])
break;
case 'H':
Hflag = 1;
hflag = 0;
break;
case 'e':
arg = EARGF(usage());
@ -80,6 +81,7 @@ main(int argc, char *argv[])
break;
case 'h':
hflag = 1;
Hflag = 0;
break;
case 'c':
case 'l':