Improve scripts (and add one) of 2012/kang
The try.alt.sh uses the alt code. This helps further show how a single letter can change so much and thus one can really appreciate the subtlety of the entry even more. The other scripts were improved.
This commit is contained in:
1 parent
75634c62bb
commit
69ee0b8de6
8 files changed
+106
-23
No files matched your search
+26
-6
@@ -14,20 +14,40 @@ make CC="$CC" everything >/dev/null || exit 1
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
|
||||
echo "$ echo Nineteen hundred and eighty-four | ./kang" 1>&2
|
||||
read -r -n 1 -p "Press any key to run: echo Nineteen hundred and eighty-four | ./kang # 1984: "
|
||||
echo 1>&2
|
||||
echo Nineteen hundred and eighty-four | ./kang
|
||||
echo 1>&2
|
||||
|
||||
echo "$ echo uno | ./kang" 1>&2
|
||||
read -r -n 1 -p "Press any key to run: echo uno | ./kang # 1: "
|
||||
echo 1>&2
|
||||
echo uno | ./kang
|
||||
echo 1>&2
|
||||
|
||||
echo "$ echo trois | ./kang" 1>&2
|
||||
read -r -n 1 -p "Press any key to run: echo trois | ./kang # 3: "
|
||||
echo 1>&2
|
||||
echo trois | ./kang
|
||||
echo 1>&2
|
||||
|
||||
echo "$ echo fier | ./kang # notice the issue here, see alternate code instead" 1>&2
|
||||
read -r -n 1 -p "Press any key to run: echo fier | ./kang # 4, should be vier: "
|
||||
echo 1>&2
|
||||
echo fier | ./kang # notice the issue here, see alternate code instead
|
||||
echo 1>&2
|
||||
|
||||
echo "$ echo \"shest'\" | ./kang" 1>&2
|
||||
read -r -n 1 -p "Press any key to run: echo vier | ./kang # 4: "
|
||||
echo 1>&2
|
||||
echo vier | ./kang # notice the issue here, see alternate code instead
|
||||
echo 1>&2
|
||||
echo "Note: for a version that gets this one right (breaking others" 1>&2
|
||||
echo "including fier), see the alt code." 1>&2
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: echo \"shest'\" | ./kang # 6: "
|
||||
echo 1>&2
|
||||
echo "shest'" | ./kang
|
||||
echo 1>&2
|
||||
|
||||
echo "$ echo dos | ./kang" 1>&2
|
||||
read -r -n 1 -p "Press any key to run: echo dos | ./kang # 2: "
|
||||
echo 1>&2
|
||||
echo dos | ./kang
|
||||
echo 1>&2
|
||||
Reference in new issue
Block a user