]> git.lizzy.rs Git - plan9front.git/commit
grep: fix handling of -b flag
authorAlex Musolino <alex@musolino.id.au>
Thu, 26 Mar 2020 07:54:39 +0000 (18:24 +1030)
committerAlex Musolino <alex@musolino.id.au>
Thu, 26 Mar 2020 07:54:39 +0000 (18:24 +1030)
commit47e3c088c90944e49041c8b210dd7169479738da
tree07adea1c23c4f7a5d459504023947b853395011e
parent2f67e21393c25943f25e116fa6912b7d92dbca4e
grep: fix handling of -b flag

Output buffering is automatically disabled when reading from stdin.
In this case, supplying the -b flag ought to be redundant.  However,
since Bflag was being XORed into the flag set - rather than simply
ORed - supplying -b would actually enable output buffering.
sys/src/cmd/grep/main.c