From a1cac7d803e3371082b085c9ffb17d2e8fde3551 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 31 Jan 2024 06:23:12 -0800 Subject: [PATCH] Improve 2018/burton2/try.sh --- 2018/burton2/try.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/2018/burton2/try.sh b/2018/burton2/try.sh index f69d7001b..9b2f7cea6 100755 --- a/2018/burton2/try.sh +++ b/2018/burton2/try.sh @@ -16,15 +16,21 @@ make CC="$CC" all >/dev/null || exit 1 clear -echo "$ ./prog -i < prog.c" 1>&2 +read -r -n 1 -p "Press any key to run: ./prog -i < prog.c: " +echo 1>&2 ./prog -i < prog.c +echo 1>&2 -echo "$ ./prog -s < prog.c" 1>&2 +read -r -n 1 -p "Press any key to run: ./prog -s < prog.c: " +echo 1>&2 ./prog -s < prog.c +echo 1>&2 -echo "$ ./prog -sk < prog.c" 1>&2 +read -r -n 1 -p "Press any key to run: ./prog -sk < prog.c: " +echo 1>&2 ./prog -sk < prog.c +echo 1>&2 read -r -n 1 -p "Press any key to run: make test (space = next page, q = quit): " echo 1>&2 -make test | less -EXF +make test | less -rEXFK