From 8b699837ed66902b1148617e0327ea75fb76df5e Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 5 Feb 2024 08:41:55 -0800 Subject: [PATCH] Further improvements to 2000/rince/try.sh Show how the commands that use 'dmy2jd' come up with the values. --- 2000/rince/try.sh | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/2000/rince/try.sh b/2000/rince/try.sh index 66629db84..4921ad757 100755 --- a/2000/rince/try.sh +++ b/2000/rince/try.sh @@ -47,7 +47,11 @@ echo 1>&2 ./rince 0.01 2441193.6 echo 1>&2 -read -r -n 1 -p "Press any key to run: ./rince 0 $(./dmy2jd 7.8 1 1610): " +read -r -n 1 -p "Press any key to run: ./dmy2jd 7.8 1 1610: " +echo 1>&2 +./dmy2jd 7.8 1 1610 +echo 1>&2 +read -r -n 1 -p "Press any key to run: ./rince 0 \$(./dmy2jd 7.8 1 1610): " echo 1>&2 # We actually need word splitting here so we disable the shellcheck warning # SC2046. @@ -58,7 +62,11 @@ echo 1>&2 ./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): " +read -r -n 1 -p "Press any key to run: ./dmy2jd 8.8 1 1610: " +echo 1>&2 +./dmy2jd 8.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 # We actually need word splitting here so we disable the shellcheck warning # SC2046. @@ -69,7 +77,11 @@ echo 1>&2 ./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): " +read -r -n 1 -p "Press any key to run: ./dmy2jd 10.8 1 1610: " +echo 1>&2 +./dmy2jd 10.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 # We actually need word splitting here so we disable the shellcheck warning # SC2046.