diff --git a/1992/buzzard.1/README.md b/1992/buzzard.1/README.md index 5932b4555..1aae9bd49 100644 --- a/1992/buzzard.1/README.md +++ b/1992/buzzard.1/README.md @@ -16,9 +16,7 @@ make all ### Try: ```sh -./buzzard.1 0 10 -./buzzard.1 56 720 -./buzzard.1 1 521 +./try.sh ``` @@ -45,9 +43,10 @@ What you shouldn't think about `buzzard.1`: I didn't just submit the post-C-preprocessed output as an entry. + #### Cute trick warning -`buzzard.1` contains only a numeric printf, yet sometimes it prints out +`buzzard.1` contains only a numeric `printf(3)`, yet sometimes it prints out short strings. diff --git a/1992/buzzard.1/try.sh b/1992/buzzard.1/try.sh new file mode 100755 index 000000000..ca5686762 --- /dev/null +++ b/1992/buzzard.1/try.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +make all >/dev/null || exit 1 + +echo "$ ./buzzard.1 0 10" 1>&2 +./buzzard.1 0 10 +echo "$ ./buzzard.1 56 720" 1>&2 +./buzzard.1 56 720 +echo "$ ./buzzard.1 1 521" 1>&2 +./buzzard.1 1 521 + +echo "$ ./buzzard.1 '1+1' 111" 1>&2 +./buzzard.1 '1+1' 111 +echo "$ ./buzzard.1 '1+1' 11" 1>&2 +./buzzard.1 '1+1' 11 +echo "$ ./buzzard.1 '1+1' 1" 1>&2 +./buzzard.1 '1+1' 1 diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 7ca8f4b1e..d43693cbb 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -1411,6 +1411,9 @@ necessary to include `time.h` so Cody did this as well. Cody added a check for the right number of args, exiting 1 if not enough (2) used. +He also added the [try.sh](1991/buzzard.1/try.sh) script to try out some +commands that we suggested and some additional ones that provide for some fun. + ## [1992/gson](1992/gson/gson.c) ([README.md](1992/gson/README.md]))