From a85ebbcfc6f658df335fcac0214365211d056113 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 31 Jan 2024 06:21:09 -0800 Subject: [PATCH] Improve 2018/burton1/try.sh --- 2018/burton1/try.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/2018/burton1/try.sh b/2018/burton1/try.sh index 6deb1b5cb..a016dc50e 100755 --- a/2018/burton1/try.sh +++ b/2018/burton1/try.sh @@ -13,27 +13,27 @@ fi make CC="$CC" everything >/dev/null || exit 1 for i in prog scripthd.sh; do - echo "$ ./$i < prog.c" 1>&2 + read -r -n 1 -p "Press any key to run: ./$i < prog.c: " + echo 1>&2 ./"$i" < prog.c echo 1>&2 read -r -n 1 -p "Press any key to run: ./$i < prog (space = next page, q = quit): " echo 1>&2 - ./"$i" < prog | less -EXF + ./"$i" < prog | less -rEXFK echo 1>&2 read -r -n 1 -p "Press any key to run: ./$i < scripthd.sh (space = next page, q = quit): " echo 1>&2 - ./"$i" < scripthd.sh | less -EXF + ./"$i" < scripthd.sh | less -rEXFK echo 1>&2 - read -r -n 1 -p "Press any key to run: head $0 | ./$i: " echo 1>&2 head "$0" | ./"$i" echo 1>&2 - read -r -n 1 -p "Press any key to run: tail -n 15 Makefile | ./$i: " + read -r -n 1 -p "Press any key to run: tail -n 15 Makefile | ./$i (space = next page, q = quit): " echo 1>&2 - tail -n 15 Makefile | ./"$i" + tail -n 15 Makefile | ./"$i" | less -rEXFK done