summaryrefslogtreecommitdiff
path: root/sys/src/cmd/grep
AgeCommit message (Collapse)Author
2020-03-26grep: fix handling of -b flagAlex Musolino
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.
2019-11-21grep: error if sbrk failsBurnZeZ
2014-03-30grep: fix tab2, use int instead of Rune to be compatible to 16bit rune systemcinap_lenrek
2014-03-30grep: fix wrong rlcass splitting (thanks erik and kenji)cinap_lenrek
add 0xffff to tab1 as range 0xffff-0x10ffff has 4 byte utf-8 sequence. use Runemax (0x10ffff) instead of Runemask (0x1fffff) to denote the last valid rune for inverted [^] match as Runemask is out of the valid rune space.
2013-04-24make all the commands agnostic about Rune width. (from sources)cinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen