From 9cf2dbc4fa001807607d3bb50bc898f625b9c55f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Reegn?= Date: Fri, 10 Nov 2023 16:39:37 +0100 Subject: [PATCH] Fix shellcheck false positive (#26) --- bin/jq-repl-preview | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/jq-repl-preview b/bin/jq-repl-preview index 2c4111c..cd1c994 100755 --- a/bin/jq-repl-preview +++ b/bin/jq-repl-preview @@ -18,6 +18,9 @@ red() { # prints preview query result to stdout, colorizes stderr to red do_query() { + # JQ_REPL_ARGS has to be unquoted so it's passed as cli args to jq so + # word splitting is desirable here + # shellcheck disable=SC2086 $JQ_REPL_JQ --color-output ${JQ_REPL_ARGS:-} "$query" "$input_file" } 2> >(red)