Improve 2001/schweikh/try.sh

This commit is contained in:
Cody Boone Ferguson committed 2024-01-19 10:08:32 -08:00
1 parent 2110b88735
commit 1ef24be70c
1 file changed
+9 -3
+9 -3
View File
@@ -15,11 +15,17 @@ make CC="$CC" all >/dev/null || exit 1
# clear screen after compilation so that only the entry is shown
clear
echo "$ ./schweikh foo 'f??'; echo \$?" 1>&2
read -r -n 1 -p "Press any key to run: ./schweikh foo 'f??'; echo \$?: "
echo 1>&2
./schweikh foo 'f??'; echo $?
echo 1>&2
echo "$ ./schweikh 'best short program' '??st*o**p?*'; echo \$?" 1>&2
read -r -n 1 -p "Press any key to run: ./schweikh 'best short program' '??st*o**p?*'; echo \$?: "
echo 1>&2
./schweikh 'best short program' '??st*o**p?*'; echo $?
echo 1>&2
echo "$ ./schweikh bar 'f??'; echo \$?" 1>&2
read -r -n 1 -p "Press any key to run: ./schweikh bar 'f??'; echo \$?: "
echo 1>&2
./schweikh bar 'f??'; echo $?
echo 1>&2