From ba758e897dfa18a56901d4105e77c9a31886e83f Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 7 Feb 2024 03:47:11 -0800 Subject: [PATCH 1/4] Minor update to less options in 2005/aidan/try --- 2005/aidan/try.alt.sh | 6 +++--- 2005/aidan/try.sh | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/2005/aidan/try.alt.sh b/2005/aidan/try.alt.sh index 8867fe4a8..67d2d13e4 100755 --- a/2005/aidan/try.alt.sh +++ b/2005/aidan/try.alt.sh @@ -23,16 +23,16 @@ echo 1>&2 read -r -n 1 -p "Press any key to run: ./$AIDAN < blank.sudoku (space = next page, q = quit): " echo 1>&2 -./"$AIDAN" < blank.sudoku | less -rEXF +./"$AIDAN" < blank.sudoku | less -rEXFK echo 1>&2 read -r -n 1 -p "Press any key to run: echo IOCCC | ./$AIDAN (space = next page, q = quit): " -echo IOCCC | ./"$AIDAN" | less -rEXF +echo IOCCC | ./"$AIDAN" | less -rEXFK echo "What just happened?" 1>&2 echo 1>&2 read -r -n 1 -p "Press any key to run: echo IOCCC | ./$AIDAN 42 (space = next page, q = quit): " -echo IOCCC | ./"$AIDAN" 42 1>&2 | less -rEXF +echo IOCCC | ./"$AIDAN" 42 1>&2 | less -rEXFK echo 1>&2 echo "Seeing that, was the 'echo IOCCC' relevant?" 1>&2 echo 1>&2 diff --git a/2005/aidan/try.sh b/2005/aidan/try.sh index 098a96e19..f572129ef 100755 --- a/2005/aidan/try.sh +++ b/2005/aidan/try.sh @@ -20,12 +20,12 @@ AIDAN="aidan" echo "$ ./$AIDAN < blank.sudoku" 1>&2 read -r -n 1 -p "Press any key to run: ./$AIDAN < blank.sudoku (space = next page, q = quit): " echo 1>&2 -./"$AIDAN" < blank.sudoku | less -rEXF +./"$AIDAN" < blank.sudoku | less -rEXFK echo 1>&2 read -r -n 1 -p "Press any key to run: ./$AIDAN U < blank.sudoku (space = next page, q = quit): " echo 1>&2 -./"$AIDAN" U < blank.sudoku | less -rEXF +./"$AIDAN" U < blank.sudoku | less -rEXFK echo 1>&2 echo "What was the difference between the previous command?" 1>&2 echo "More specifically, what did it do?" 1>&2 @@ -33,7 +33,7 @@ echo 1>&2 read -r -n 1 -p "Press any key to run: echo IOCCC | ./$AIDAN (space = next page, q = quit): " echo 1>&2 -echo IOCCC | ./"$AIDAN" | less -rEXF +echo IOCCC | ./"$AIDAN" | less -rEXFK echo 1>&2 echo "What just happened?" 1>&2 echo 1>&2 @@ -41,18 +41,18 @@ echo 1>&2 read -r -n 1 -p "Press any key to run: echo IOCCC | ./$AIDAN 42 (space = next page, q = quit): " echo 1>&2 -echo IOCCC | ./"$AIDAN" 42 | less -rEXF +echo IOCCC | ./"$AIDAN" 42 | less -rEXFK echo 1>&2 echo "Seeing that, was the 'echo IOCCC' relevant?" 1>&2 echo 1>&2 read -r -n 1 -p "Press any key to run: ./$AIDAN < insane1.sudoku (space = next page, q = quit): " -./"$AIDAN" < insane1.sudoku | less -rEXF +./"$AIDAN" < insane1.sudoku | less -rEXFK read -r -n 1 -p "Do you with to run the test suite (y/n)? " if [[ "$REPLY" = "y" || "$REPLY" = "Y" ]]; then echo 1>&2 read -r -n 1 -p "Press any key to run: make test (space = next page, q = quit): " echo 1>&2 - make test | less -rEXF + make test | less -rEXFK fi From 5935d523c435937af196a302f04e1ee727073563 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 7 Feb 2024 04:36:20 -0800 Subject: [PATCH 2/4] Fix link to SDL FAQ in 2005/jetro/README.md --- 2005/jetro/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2005/jetro/README.md b/2005/jetro/README.md index 2dfae508b..9e357e868 100644 --- a/2005/jetro/README.md +++ b/2005/jetro/README.md @@ -2,8 +2,8 @@ This entry requires SDL to be installed. -See the [FAQ](/faq.md) for information on how to install it if you haven't -already. +See [3.8 - How do I compile an IOCCC winner that requires SDL1 or +SDL2?](/faq.md#SDL) for information on how to install it if you haven't already. If you have SDL installed: From 3709b1f75c7b13675b3fe1b64b7dcbe9b2833446 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 7 Feb 2024 04:39:41 -0800 Subject: [PATCH 3/4] Restore original comment in 2005/chia In README.md it's fine to fix a spelling error. Not so in the code but it was changed without really thinking about it on 22 March 2023. This fixes that problem: for problem it is. --- 2005/chia/chia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2005/chia/chia.c b/2005/chia/chia.c index f022bece2..6469642a8 100644 --- a/2005/chia/chia.c +++ b/2005/chia/chia.c @@ -1,6 +1,6 @@ /* * Sun's Java is often touted as being "portable", even though my code won't - * suddenly become über-portable if it's in Java. Truth is, Java's one of + * suddenly become uber-portable if it's in Java. Truth is, Java's one of * the most ugly, slow, and straitjacketed languages ever. It's popular * mainly because people hear the word "portable" and go "ewww". * From b446d884b79cf6c5dbadd5f5a43f315c34940dc7 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 7 Feb 2024 04:45:32 -0800 Subject: [PATCH 4/4] Remove ambiguity in 2005/jetro/README.md The wording 'this entry requires SDL to be installed' has more than one interpretation: 'it requires SDL to install the entry' (which seems more likely even though it's incorrect) or 'it requires SDL to be built' (less likely as that is not what it said). Now it just says 'this entry requires SDL'. Now it's monosemic and it says exactly what it should (okay - it could say something else like 'it requires SDL to compile' but that's bordering on unnecessary semantics). --- 2005/jetro/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/2005/jetro/README.md b/2005/jetro/README.md index 9e357e868..ebd6a1f66 100644 --- a/2005/jetro/README.md +++ b/2005/jetro/README.md @@ -1,9 +1,8 @@ ## To build: -This entry requires SDL to be installed. - -See [3.8 - How do I compile an IOCCC winner that requires SDL1 or -SDL2?](/faq.md#SDL) for information on how to install it if you haven't already. +This entry requires SDL. See [3.8 - How do I compile an IOCCC winner that +requires SDL1 or SDL2?](/faq.md#SDL) for information on how to install it if you +haven't already. If you have SDL installed: