From bf3ebe435be9a8f2cade24e4910474a08a9cb515 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sun, 21 Jan 2024 05:21:01 -0800 Subject: [PATCH] Deal with shellcheck warnings in 2000/rince/try.sh --- 2000/rince/try.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/2000/rince/try.sh b/2000/rince/try.sh index 375f04f1d..2ab1eec5e 100755 --- a/2000/rince/try.sh +++ b/2000/rince/try.sh @@ -22,6 +22,14 @@ echo 1>&2 read -r -n 1 -p "Press any key to run: ./rince 0.001 $(./dmy2jd 7.8 1 1610): " echo 1>&2 + +# ShellCheck is incorrect about: +# +# SC2046 (warning): Quote this to prevent word splitting. +# +# because we actually want word splitting. +# +# shellcheck disable=SC2046 ./rince 0.001 $(./dmy2jd 7.8 1 1610) echo 1>&2 @@ -42,15 +50,36 @@ echo 1>&2 read -r -n 1 -p "Press any key to run: ./rince 0 $(./dmy2jd 7.8 1 1610): " echo 1>&2 +# ShellCheck is incorrect about: +# +# SC2046 (warning): Quote this to prevent word splitting. +# +# because we actually want word splitting. +# +# shellcheck disable=SC2046 ./rince 0 $(./dmy2jd 7.8 1 1610) echo 1>&2 read -r -n 1 -p "Press any key to run: ./rince 0 $(./dmy2jd 8.8 1 1610): " echo 1>&2 +# ShellCheck is incorrect about: +# +# SC2046 (warning): Quote this to prevent word splitting. +# +# because we actually want word splitting. +# +# shellcheck disable=SC2046 ./rince 0 $(./dmy2jd 8.8 1 1610) echo 1>&2 read -r -n 1 -p "Press any key to run: ./rince 0 $(./dmy2jd 10.8 1 1610): " echo 1>&2 +# ShellCheck is incorrect about: +# +# SC2046 (warning): Quote this to prevent word splitting. +# +# because we actually want word splitting. +# +# shellcheck disable=SC2046 ./rince 0 $(./dmy2jd 10.8 1 1610) echo 1>&2