1
0
mirror of git://git.suckless.org/sbase synced 2024-12-24 16:02:54 +00:00

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

2
grep.c
View File

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