1
0
mirror of git://git.suckless.org/sbase synced 2024-12-23 15:34:38 +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;
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':