Add 2015/schweikhardt/try.sh + format/typo checks
The bugs.md file has also been updated with a INABIAF section. One in particular might be up to discussion and is easily fixed but it's not clear yet if it should change so it's not done (for now?). The issue above notwithstanding this entry should be complete.
This commit is contained in:
1 parent
47874d3820
commit
cc139fe3e5
4 files changed
+237
-84
No files matched your search
Executable
+51
@@ -0,0 +1,51 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# try.sh - demonstrate IOCCC winner 2015/schweikhardt
|
||||
#
|
||||
|
||||
# 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.
|
||||
if [[ -z "$CC" ]]; then
|
||||
CC="cc"
|
||||
fi
|
||||
|
||||
make CC="$CC" all >/dev/null || exit 1
|
||||
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
|
||||
echo "$ ./prog 19" 1>&2
|
||||
./prog 19
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./prog 2410 (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
./prog 2410 | less -EXF
|
||||
read -r -n 1 -p "Press any key to run: ./prog abfff (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
./prog abfff | less -EXF
|
||||
read -r -n 1 -p "Press any key to run: ./prog 27f8cebf (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
./prog 27f8cebf | less -EXF
|
||||
read -r -n 1 -p "Press any key to run: ./prog 246f8fddf (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
./prog 246f8fddf | less -EXF
|
||||
read -r -n 1 -p "Press any key to run: ./prog 2e95ab51ffea9de (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
./prog 2e95ab51ffea9de | less -EXF
|
||||
read -r -n 1 -p "Press any key to run: ./prog e6a5c22fd7bde9f (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
./prog e6a5c22fd7bde9f | less -EXF
|
||||
read -r -n 1 -p "Press any key to run: ./prog 1b7dd73a937485bf (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
./prog 1b7dd73a937485bf | less -EXF
|
||||
read -r -n 1 -p "Press any key to run: ./prog 7d3237680d190a77e53751b (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
./prog 7d3237680d190a77e53751b | less -EXF
|
||||
read -r -n 1 -p "Press any key to run: ./prog 302ab3d052fb87c06228d249581be0e4 (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
./prog 302ab3d052fb87c06228d249581be0e4 | less -EXF
|
||||
echo 1>&2
|
||||
read -r -n 1 -p "Press any key to run ./prog with a googol (10^100) (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
./prog 1249AD2594C37CEB0B2784C4CE0BF38ACE408E211A7CAAB24308A82E8F10000000000000000000000000 | less -EXF
|
||||
Reference in new issue
Block a user