aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/grep.c
AgeCommit message (Expand)Author
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
2016-02-10Factor out strnstr() since posix hasn't got it, and add a config option forRob Landley
2016-02-10Although printf("%.*s", INT_MAX, s) works fine on ubuntu 12.04, it broke since.Rob Landley
2016-02-04Fix -H and -n with -ABC, and add tests.Rob Landley
2016-01-30Add grep -B -CRob Landley
2016-01-30Add grep -ARob Landley
2016-01-05Add error_msg_raw() and friends, replace error_msg("%s", s) uses, enable formatRob Landley
2015-11-01Change grep -w to checking matches after the fact rather than modifing regex.Rob Landley
2015-06-06Last grep commit broke non -r use of grep. Oops.Rob Landley
2015-05-20Make "grep -r regex" work on implicit "." if no files specified.Rob Landley
2015-02-14Make egrep and fgrep build standalone.Rob Landley
2014-12-31Redo option parsing infrastructure so #define FORCE_FLAGS can unzero flag mac...Rob Landley
2014-04-16Revert lots of half-finished local debris I didn't mean to check in with Isaa...Rob Landley
2014-04-12roadmap: describe glibc commands.Isaac Dunham
2013-12-29Add -zZ support to grep (NUL delimited input/output).Rob Landley