Add 1993/dgibson/try.sh
This commit is contained in:
1 parent
d347b24626
commit
58195f6192
4 files changed
+35
-5
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# try.sh - demonstrate IOCCC winner 1993/dgibson
|
||||
#
|
||||
|
||||
# we make use of the script dgibson.sh so we don't need to compile it. In any
|
||||
# event that script rebuilds the program.
|
||||
if [[ -z "$CC" ]]; then
|
||||
CC="cc"
|
||||
fi
|
||||
|
||||
for f in dgibson.data[1-5]; do
|
||||
read -r -n 1 -p "Press any key to run: CC=$CC ./dgibson.sh $f: "
|
||||
echo 1>&2
|
||||
CC="$CC" ./dgibson.sh "$f"
|
||||
echo 1>&2
|
||||
done
|
||||
Reference in new issue
Block a user