Rob Landley
|
c3f3f842c5
Replace \033 with \e in strings.
|
2 years ago |
Rob Landley
|
52e27717ae
Don't forbid grep -Fw combination, it works find and the
|
2 years ago |
Rob Landley
|
3062fc9e9a
Fix grep --color to highlight all matches, based on Peter Collingbourne's
|
2 years ago |
Peter Collingbourne
|
fb3c380d07
grep: Implement -L.
|
2 years ago |
Rob Landley
|
d3025b14b9
Convert utf8towc from wchar_t to unsigned (to match wctoutf8).
|
3 years ago |
Robin Hsu
|
56ef8fcedc
Fix grep bug testing errno before check status
|
3 years ago |
Rob Landley
|
6817e114bb
Teach -o to print ranges that produce zero length matches.
|
3 years ago |
Rob Landley
|
76d3160cfa
Fix grep bug where -f /dev/null added "" regex matching everything,
|
3 years ago |
Rob Landley
|
4e47b8e583
The "fall back to C.UTF-8" check was backwards, and make TOYFLAG_LINEBUF
|
3 years ago |
Elliott Hughes
|
aed6c26fe4
Make it easier to switch regex implementations.
|
3 years ago |
Elliott Hughes
|
d8a46b5b6b
Move the empty regex workaround into xregcomp.
|
5 years ago |
Elliott Hughes
|
e4dd535088
grep: fake GNU behavior for non-POSIX empty regex.
|
5 years ago |
Rob Landley
|
25bfbb69be
Fix unaligned access, tweak test suite.
|
5 years ago |
Elliott Hughes
|
fdd58dc338
grep: fix two bugs found by hwasan.
|
5 years ago |
Elliott Hughes
|
5194d4ad66
grep: add -R as well as -r.
|
5 years ago |
Elliott Hughes
|
2f9d9096aa
grep: add --exclude-dir.
|
5 years ago |
Rob Landley
|
a39eab3fc7
Fix a missing else, and an inverted test hidden by the missing else.
|
5 years ago |
Rob Landley
|
5873cd68b1
Ignore --line-buffered argument for script compatibility (it's the default).
|
5 years ago |
Elliott Hughes
|
caa5a3b131
grep: use TOYFLAG_ARGFAIL for grep too.
|
5 years ago |
Elliott Hughes
|
2d17d2762b
grep: add missing long synonyms used in AOSP.
|
5 years ago |
Elliott Hughes
|
cf93c81427
grep: add --quiet and --silent synonyms for -q.
|
5 years ago |
Rob Landley
|
49bfa0723d
grep: "tried" should track arguments (not files) that existed, move -o "" test
|
5 years ago |
Rob Landley
|
bb184f1a4e
Add grep --color
|
5 years ago |
Rob Landley
|
9535dadad6
Use FLAG() macros in grep.
|
5 years ago |
Rob Landley
|
84e22115a5
A couple more grep tests, and slightly use dlist_terminate() for the loops.
|
5 years ago |
Rob Landley
|
ca3528d7bf
Fix remaining grep_tests.
|
5 years ago |
Rob Landley
|
3c2a6d3622
Support embedded NUL bytes in grep output, and free memory leaked per-file.
|
5 years ago |
Rob Landley
|
004ab612d5
More grep.tests: make exit code 2 happen when it should.
|
5 years ago |
Rob Landley
|
2eb2fdea88
Fix first grep.test failure (-B + -b not producing middle field).
|
5 years ago |
Elliott Hughes
|
141a075c0e
Clean up some --help formatting.
|
5 years ago |