From 3657b705b998bd0eabf0b5d35054ada3e28c13d4 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 5 Feb 2024 08:33:02 -0800 Subject: [PATCH] Fix shellcheck comments for 2000/rince/try.sh --- 2000/rince/try.sh | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/2000/rince/try.sh b/2000/rince/try.sh index 2ab1eec5e..66629db84 100755 --- a/2000/rince/try.sh +++ b/2000/rince/try.sh @@ -23,12 +23,11 @@ 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. +# We actually need word splitting here so we disable the shellcheck warning +# SC2046. # +# SC2046 (warning): Quote this to prevent word splitting. +# https://www.shellcheck.net/wiki/SC2046 # shellcheck disable=SC2046 ./rince 0.001 $(./dmy2jd 7.8 1 1610) echo 1>&2 @@ -50,36 +49,33 @@ 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. +# We actually need word splitting here so we disable the shellcheck warning +# SC2046. # +# SC2046 (warning): Quote this to prevent word splitting. +# https://www.shellcheck.net/wiki/SC2046 # 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. +# We actually need word splitting here so we disable the shellcheck warning +# SC2046. # +# SC2046 (warning): Quote this to prevent word splitting. +# https://www.shellcheck.net/wiki/SC2046 # 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. +# We actually need word splitting here so we disable the shellcheck warning +# SC2046. # +# SC2046 (warning): Quote this to prevent word splitting. +# https://www.shellcheck.net/wiki/SC2046 # shellcheck disable=SC2046 ./rince 0 $(./dmy2jd 10.8 1 1610) echo 1>&2