diff --git a/2012/vik/try.sh b/2012/vik/try.sh index deb29e9fb..f46bc2e3f 100755 --- a/2012/vik/try.sh +++ b/2012/vik/try.sh @@ -15,18 +15,6 @@ make CC="$CC" all >/dev/null || exit 1 # clear screen after compilation so that only the entry is shown clear -read -r -n 1 -p "Press any key to embed chocolate in chocolate-in-ioccc.png: " -echo 1>&2 -echo "$ ./vik e chocolate-in-ioccc.png \"Mmm... chocolate.\" > mmm-chocolate.png" 1>&2 -./vik e chocolate-in-ioccc.png "Mmm... chocolate." > mmm-chocolate.png -echo 1>&2 - -read -r -n 1 -p "Press any key to extract chocolate from mmm-chocolate.png: " -echo 1>&2 -echo "$ ./vik d mmm-chocolate.png" 1>&2 -./vik d mmm-chocolate.png -echo 1>&2 - read -r -n 1 -p "Press any key to embed chocolate.png in ioccc.png: " echo 1>&2 echo "$ ./vik e ioccc.png chocolate.png > chocolate-in-ioccc.png" 1>&2 @@ -39,6 +27,18 @@ echo "$ ./vik e chocolate.png ioccc.png > ioccc-in-chocolate.png" ./vik e chocolate.png ioccc.png > ioccc-in-chocolate.png echo 1>&2 +read -r -n 1 -p "Press any key to embed chocolate in chocolate-in-ioccc.png: " +echo 1>&2 +echo "$ ./vik e chocolate-in-ioccc.png \"Mmm... chocolate.\" > mmm-chocolate.png" 1>&2 +./vik e chocolate-in-ioccc.png "Mmm... chocolate." > mmm-chocolate.png +echo 1>&2 + +read -r -n 1 -p "Press any key to extract chocolate from mmm-chocolate.png: " +echo 1>&2 +echo "$ ./vik d mmm-chocolate.png" 1>&2 +./vik d mmm-chocolate.png +echo 1>&2 + read -r -n 1 -p "Press any key to embed a brainfuck program as a text file and decode it: " echo 1>&2 echo "$ ./vik e ioccc.png .+[.+] > encodedimg.png" 1>&2 diff --git a/bugs.md b/bugs.md index 907a7e70d..aa081950b 100644 --- a/bugs.md +++ b/bugs.md @@ -3019,12 +3019,12 @@ will likely dump core. ### Information: [2012/vik/README.md](2012/vik/README.md) The author stated that the program will crash if no argument is passed to the -program or if invalid arguments or images of mismatching sizes or unsupported -pixel formats though we note that your computer might also [halt and catch +program or if invalid arguments (e.g. file does not exist) or images of +mismatching sizes or unsupported pixel formats though we note that your computer +might also [halt and catch fire](https://en.wikipedia.org/wiki/Halt_and_Catch_Fire_(computing)) :-) - # 2013 ## 2013 cable2 diff --git a/thanks-for-help.md b/thanks-for-help.md index 945e3ef32..fe629acf5 100644 --- a/thanks-for-help.md +++ b/thanks-for-help.md @@ -3838,14 +3838,11 @@ Cody also added the [try.sh](/2012/omoikane/try.sh) and ## [2012/vik](/2012/vik/vik.c) ([README.md](/2012/vik/README.md])) +[Cody](#cody) added the [try.sh](/2012/vik/try.sh) script. + Based on the author's description it should be able to get this entry to work -for Windows. With his instructions Cody added the alternate version that does -this for the few who might use Windows. - -We're not sure whether we want to thank Cody or not for this :-) and he's not -sure if he wants to be thanked either :-) but we appreciate it nonetheless. - -Cody also added the [try.sh](/2012/vik/try.sh) script. +for Windows. With his instructions Cody also added the alternate version that +does this for the few who might use Windows. ## [2012/zeitak](/2012/zeitak/zeitak.c) ([README.md](/2012/zeitak/README.md]))