From 24b72cc1b5e982cc6f1c8bd001b842ab21d110c1 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Wed, 20 Sep 2017 15:27:18 -0400 Subject: next_actions: Disable binary grep filtering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- commands/next_actions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') 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' "$@")" -- cgit v1.2.3