diff options
author | Benjamin Barenblat <bbaren@google.com> | 2017-09-20 15:27:18 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2017-09-20 15:27:18 -0400 |
commit | 24b72cc1b5e982cc6f1c8bd001b842ab21d110c1 (patch) | |
tree | 7550282cce1ca63028a2dc83ba9e6dee2fe0afc4 | |
parent | da07a8977705c93965d2e6e7ed6f9ac26a960787 (diff) |
next_actions: Disable binary grep filtering
GNU Grep detects if its input contains unprintable characters and simply
outputs “Binary file [filename] matches”. Running grep over actions
containing unprintable characters will thus display “Binary file
(standard input) matches” instead of anything useful. While it’s
unlikely that users will have actions containing unprintable characters,
it’s much better to display those characters than to cut off all output.
Disable the check.
-rwxr-xr-x | commands/next_actions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/next_actions b/commands/next_actions index 25b4603..797ecd2 100755 --- a/commands/next_actions +++ b/commands/next_actions @@ -22,4 +22,4 @@ common_awk ' showWithFile($1) } ' "${GTD_TXT_DATA[@]}" \ - | grep -F "$(join_by $'\n' "$@")" + | grep -F --binary-files=text "$(join_by $'\n' "$@")" |