Remove 2012/kang alt code
This code is based on a 'fix' that causes another issue, and could potentially be 'wrong' to have. It is better, I think, to pose the challenge to the viewer to see if they can solve the problem themselves, and if so if there are any issues with such a fix.
This commit is contained in:
1 parent
205b7a38b3
commit
2a27f85006
11 files changed
+26
-270
No files matched your search
+8
-6
@@ -9,7 +9,7 @@ if [[ -z "$CC" ]]; then
|
||||
CC="cc"
|
||||
fi
|
||||
|
||||
make CC="$CC" everything >/dev/null || exit 1
|
||||
make CC="$CC" all >/dev/null || exit 1
|
||||
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
@@ -31,15 +31,12 @@ echo 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 fier | ./kang # notice the issue here; this is intentional
|
||||
echo 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 alternate code." 1>&2
|
||||
echo vier | ./kang # notice the issue he; this is intentional
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: echo \"shest'\" | ./kang # 6: "
|
||||
@@ -51,3 +48,8 @@ read -r -n 1 -p "Press any key to run: echo dos | ./kang # 2: "
|
||||
echo 1>&2
|
||||
echo dos | ./kang
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: echo forty-two | ./kang # 42: "
|
||||
echo 1>&2
|
||||
echo forty-two | ./kang
|
||||
echo 1>&2
|
||||
Reference in new issue
Block a user