From 328cd5924c51ca39d4e44027c2cf72ea7b13e418 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 24 Nov 2025 13:35:56 -0800 Subject: [PATCH] Fix next/try.alt.sh, update try script versions The try.alt.sh used 'make all' and it also called './prog' and not './prog.alt'. The version for both try.sh and try.alt.sh were updated. Presumably before the contest is opened this will change again (or not due to this) but since I edited the try.alt.sh and updated the version it seems fitting to update the try.sh version too. --- next/try.alt.sh | 12 ++++++------ next/try.sh | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/next/try.alt.sh b/next/try.alt.sh index 1480c3fa4..d2add1b44 100755 --- a/next/try.alt.sh +++ b/next/try.alt.sh @@ -4,7 +4,7 @@ # XXX - NOTE: please remove all "XXX - ... - XXX" lines, including this one - XXX # XXX - - XXX -# XXX - try.alt.sh example version: 28.1.1 2024-07-06 - XXX +# XXX - try.alt.sh example version: 29.0.0 2025-11-24 - XXX # make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it # this way allows us to have the user specify a different compiler in an easy way. @@ -25,7 +25,7 @@ # XXX - Later, if the submission wins, it can be changed to 'everything'. - XXX # XXX - - XXX MAKE=$(command -v gmake) -${MAKE:=make} CC="$CC" all >/dev/null || exit 1 +${MAKE:=make} CC="$CC" alt >/dev/null || exit 1 # clear the screen # @@ -56,10 +56,10 @@ clear # try the program # -read -r -n 1 -p "Press any key to run: ./prog: " +read -r -n 1 -p "Press any key to run: ./prog.alt: " echo 1>&2 echo 1>&2 -./prog +./prog.alt echo 1>&2 # try the program with args @@ -69,11 +69,11 @@ echo 1>&2 # XXX - - XXX echo 'Let us try another example. Observe the line count of output and the last line of data!' 1>&2 echo 1>&2 -read -r -n 1 -p "Press any key to run: date | ./prog some command line | LANG=C sort > data: " +read -r -n 1 -p "Press any key to run: date | ./prog.alt some command line | LANG=C sort > data: " echo 1>&2 echo 1>&2 rm -f data -date | ./prog some command line | LANG=C sort > data +date | ./prog.alt some command line | LANG=C sort > data wc -l < data tail -n 1 data echo 1>&2 diff --git a/next/try.sh b/next/try.sh index 16c2a0086..b0163e361 100755 --- a/next/try.sh +++ b/next/try.sh @@ -4,7 +4,7 @@ # XXX - NOTE: please remove all "XXX - ... - XXX" lines, including this one - XXX # XXX - - XXX -# XXX - try.sh example version: 28.1.1 2024-07-06 - XXX +# XXX - try.sh example version: 29.0.0 2025-11-24 - XXX # make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it # this way allows us to have the user specify a different compiler in an easy way.