aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/grep.c
AgeCommit message (Expand)Author
2023-06-23grep -m stops new matches, but -A still shows lines after last match.Rob Landley
2023-03-03Change FLAG(x) macros to always return 0 or 1. Treewide audit of FLAG()Rob Landley
2022-11-07Fix grep to not truncate last character of file provided by -f argumentDaniel Mentz
2022-10-30Various --longopts Antoni Villalonga says are used in package builds.Rob Landley
2022-10-17Fix grep to pass recently added test, and add a couple more tests.Rob Landley
2022-10-03Fix bucket sort with -FRob Landley
2022-09-29Fix grep fast path logic to handle initial \ and '^$' pattern.Rob Landley
2022-09-24Speed up grep with large numbers of patterns.Rob Landley
2022-09-21Teach grep to autodetect fixed patterns and run fixed and regex tests together.Rob Landley
2022-01-03Replace \033 with \e in strings.Rob Landley
2021-11-03Don't forbid grep -Fw combination, it works find and theRob Landley
2021-09-23Fix grep --color to highlight all matches, based on Peter Collingbourne'sRob Landley
2021-09-21grep: Implement -L.Peter Collingbourne
2021-05-15Convert utf8towc from wchar_t to unsigned (to match wctoutf8).Rob Landley
2021-03-12Fix grep bug testing errno before check statusRobin Hsu
2021-02-21Teach -o to print ranges that produce zero length matches.Rob Landley
2021-01-23Fix grep bug where -f /dev/null added "" regex matching everything,Rob Landley
2020-12-11The "fall back to C.UTF-8" check was backwards, and make TOYFLAG_LINEBUFRob Landley
2020-10-29Make it easier to switch regex implementations.Elliott Hughes
2019-07-31Move the empty regex workaround into xregcomp.Elliott Hughes
2019-07-29grep: fake GNU behavior for non-POSIX empty regex.Elliott Hughes
2019-07-16Fix unaligned access, tweak test suite.Rob Landley
2019-07-16grep: fix two bugs found by hwasan.Elliott Hughes
2019-07-12grep: add -R as well as -r.Elliott Hughes
2019-05-25grep: add --exclude-dir.Elliott Hughes
2019-05-17Fix a missing else, and an inverted test hidden by the missing else.Rob Landley
2019-04-18Ignore --line-buffered argument for script compatibility (it's the default).Rob Landley
2019-03-14grep: use TOYFLAG_ARGFAIL for grep too.Elliott Hughes
2019-02-24grep: add missing long synonyms used in AOSP.Elliott Hughes
2019-02-19grep: add --quiet and --silent synonyms for -q.Elliott Hughes
2019-01-24grep: "tried" should track arguments (not files) that existed, move -o "" testRob Landley
2018-12-23Add grep --colorRob Landley
2018-12-17Use FLAG() macros in grep.Rob Landley
2018-12-17A couple more grep tests, and slightly use dlist_terminate() for the loops.Rob Landley
2018-12-17Fix remaining grep_tests.Rob Landley
2018-12-09Support embedded NUL bytes in grep output, and free memory leaked per-file.Rob Landley
2018-12-09More grep.tests: make exit code 2 happen when it should.Rob Landley
2018-12-09Fix first grep.test failure (-B + -b not producing middle field).Rob Landley
2018-12-04Clean up some --help formatting.Elliott Hughes
2018-11-28macOS: replace local strnstr with strcasestr.Elliott Hughes
2018-11-02Convert more option vars to the new (single letter) coding style.Rob Landley
2018-08-26Add binary file detection to grep.Rob Landley
2017-06-14Grep exits with 2 for errors, which can happen at any time ( > /dev/full).Rob Landley
2017-06-12Add grep -M match and -S skip supporting wildcard patterns.Rob Landley
2017-06-11Provide error messages for files we can open but not read (ala directories).Rob Landley
2017-06-10Fix bug where grep stopped at first dangling symlink and error_exited().Rob Landley
2016-11-21Have dirtree_notdotdot() pass through !node->parent so . and .. on the commandRob Landley
2016-09-05Replace loopfiles' failok with WARN_ONLY open flag.Rob Landley
2016-08-04Make xopen() skip stdin/stdout/stderr, add xopen_stdio() if you want stdout,Rob Landley
2016-06-15The glibc bug at https://sourceware.org/bugzilla/show_bug.cgi?id=17829Rob Landley