sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit dac5891df95b7f98dcbacc8611947c5f08a9260f
parent 18742eed170c03a122ddb4d63af6616145489d9a
Author: Quentin Rameau <quinq@fifth.space>
Date:   Tue Jan  5 14:52:46 +0100

grep: make E and F flags mutually exclusive

Don't make F the priority flag when both E and F are given, instead use
the last one.

Diffstat:
grep.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/grep.c b/grep.c @@ -183,10 +183,13 @@ main(int argc, char *argv[]) ARGBEGIN { case 'E': Eflag = 1; + Fflag = 0; flags |= REG_EXTENDED; break; case 'F': Fflag = 1; + Eflag = 0; + flags &= ~REG_EXTENDED; break; case 'H': Hflag = 1;