diff options
author | Rob Landley <rob@landley.net> | 2020-12-11 19:50:36 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-12-11 19:50:36 -0600 |
commit | 4e47b8e583903752c08a29873ffcb868173c70d8 (patch) | |
tree | 08311d13e1942b49cd64671ad83e63b9336b6033 /toys/posix | |
parent | 2fa16e73fba0e908309aadad4d4668b86a1134e5 (diff) | |
download | toybox-4e47b8e583903752c08a29873ffcb868173c70d8.tar.gz |
The "fall back to C.UTF-8" check was backwards, and make TOYFLAG_LINEBUF
configurable.
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/grep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toys/posix/grep.c b/toys/posix/grep.c index 9f445fca..fce8d564 100644 --- a/toys/posix/grep.c +++ b/toys/posix/grep.c @@ -10,9 +10,9 @@ * echo hello | grep -f </dev/null * -USE_GREP(NEWTOY(grep, "(line-buffered)(color):;(exclude-dir)*S(exclude)*M(include)*ZzEFHIab(byte-offset)h(no-filename)ino(only-matching)rRsvwcl(files-with-matches)q(quiet)(silent)e*f*C#B#A#m#x[!wx][!EFw]", TOYFLAG_BIN|TOYFLAG_ARGFAIL(2))) -USE_EGREP(OLDTOY(egrep, grep, TOYFLAG_BIN|TOYFLAG_ARGFAIL(2))) -USE_FGREP(OLDTOY(fgrep, grep, TOYFLAG_BIN|TOYFLAG_ARGFAIL(2))) +USE_GREP(NEWTOY(grep, "(line-buffered)(color):;(exclude-dir)*S(exclude)*M(include)*ZzEFHIab(byte-offset)h(no-filename)ino(only-matching)rRsvwcl(files-with-matches)q(quiet)(silent)e*f*C#B#A#m#x[!wx][!EFw]", TOYFLAG_BIN|TOYFLAG_ARGFAIL(2)|TOYFLAG_LINEBUF)) +USE_EGREP(OLDTOY(egrep, grep, TOYFLAG_BIN|TOYFLAG_ARGFAIL(2)|TOYFLAG_LINEBUF)) +USE_FGREP(OLDTOY(fgrep, grep, TOYFLAG_BIN|TOYFLAG_ARGFAIL(2)|TOYFLAG_LINEBUF)) config GREP bool "grep" |