From 7390b11f251fc5577ee3dfdfc2a25449ca75c750 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:24:17 -0800 Subject: [PATCH] Improve 1995/esde/try.sh --- 1995/esde/try.sh | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/1995/esde/try.sh b/1995/esde/try.sh index e64239021..c6ae1ad31 100755 --- a/1995/esde/try.sh +++ b/1995/esde/try.sh @@ -15,13 +15,27 @@ make CC="$CC" all >/dev/null || exit 1 # clear screen after compilation so that only the entry is shown clear -echo "$ ./esde esde.data Johanson" +read -r -n 1 -p "Press any key to show esde.data: " +echo 1>&2 +cat esde.data +echo 1>&2 + +read -r -n 1 -p "Press any key to run: ./esde esde.data Johanson: " +echo 1>&2 ./esde esde.data Johanson -echo +echo 1>&2 -echo "$ ./esde esde.data2 read" +read -r -n 1 -p "Press any key to show esde.data2: " +echo 1>&2 +cat esde.data2 +echo 1>&2 + +read -r -n 1 -p "Press any key to run: ./esde esde.data2 read: " +echo 1>&2 ./esde esde.data2 read -echo +echo 1>&2 -echo "$ ./esde README.md date" +read -r -n 1 -p "Press any key to run: ./esde README.md date: " +echo 1>&2 ./esde README.md date +echo 1>&2