Open blueyed opened 6 years ago
Is there a way for ShellCheck to know that this is done on purpose? For example, this snippet has the same format but doesn't do it on purpose:
colorize() { echo "$(tput setaf 3)$*$(tput sgr0)"; }
printf 'Score: $(colorize %0.3f)\n' '1.2345'
Here
printf
is used on purpose, and therefore SC2016 should not be emitted.btw: when using double quotes and a variable in there you will get: