[BUG] Shellcheck error SC2086 on $JQG_OPTS
Closed this issue · 0 comments
NorthboundTrain commented
Describe the bug
On line 26, the use of $JQG_OPTS
should be quoted to prevent globbing, however that can't be done directly because then it won't word-split (which is desired).
https://github.com/koalaman/shellcheck/wiki/SC2086
Versions & Environments
JQG: v1.1.2
JQ: jq-1.6
BASH: /opt/local/bin/bash -- 5.1.16(1)-release
$JQG_OPTS:
$JQ_BIN:
To Reproduce
- run
src/jqg
throughshellcheck
to see error - quote the value in the script then run unit tests:
test/31-jqg-opts-envvar.bats (Wstat: 256 Tests: 22 Failed: 6)
Failed tests: 9-10, 12, 14, 20-21
Non-zero exit status: 1
Additional Context
n/a