grep: reset inverse flag if both are set
This commit is contained in:
parent
e6df377504
commit
5c821d43ef
2
grep.c
2
grep.c
|
@ -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':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user