Improve 2005/aidan try scripts
This commit is contained in:
1 parent
38ed2dcd45
commit
3fdcf5cb2c
3 files changed
+45
-41
No files matched your search
+15
-16
@@ -21,27 +21,26 @@ echo "When looking at the output, notice how some of the output is different" 1>
|
||||
echo "from the aidan.c." 1>&2
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to continue: "
|
||||
echo "$ ./$AIDAN < blank.sudoku" 1>&2
|
||||
./"$AIDAN" < blank.sudoku
|
||||
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
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to continue: "
|
||||
|
||||
|
||||
echo "$ echo IOCCC | ./$AIDAN" 1>&2
|
||||
echo IOCCC | ./"$AIDAN"
|
||||
read -r -n 1 -p "Press any key to run: echo IOCCC | ./$AIDAN (space = next page, q = quit): "
|
||||
echo IOCCC | ./"$AIDAN" | less -rEXF
|
||||
echo "What just happened?" 1>&2
|
||||
echo 1>&2
|
||||
|
||||
echo "$ echo IOCCC | ./$AIDAN 42" 1>&2
|
||||
read -r -n 1 -p "Press any key to continue (q = exit pager space = go down a page): "
|
||||
echo IOCCC | ./"$AIDAN" 42 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 1>&2
|
||||
echo "Seeing that, was the 'echo IOCCC' relevant?" 1>&2
|
||||
echo 1>&2
|
||||
|
||||
echo "$ ./$AIDAN < insane1.sudoku" 1>&2
|
||||
read -r -n 1 -p "Press any key to continue: "
|
||||
./"$AIDAN" < insane1.sudoku
|
||||
echo "Did you notice how much slower this is than aidan? If not try try.sh!" 1>&2
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./$AIDAN < insane1.sudoku (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
./"$AIDAN" < insane1.sudoku
|
||||
echo 1>&2
|
||||
echo "Did you notice how much slower this is than aidan.c? If not try try.sh!" 1>&2
|
||||
echo 1>&2
|
||||
+22
-18
@@ -18,37 +18,41 @@ clear
|
||||
AIDAN="aidan"
|
||||
|
||||
echo "$ ./$AIDAN < blank.sudoku" 1>&2
|
||||
./"$AIDAN" < blank.sudoku
|
||||
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
|
||||
echo 1>&2
|
||||
|
||||
echo "$ ./$AIDAN U < blank.sudoku" 1>&2
|
||||
read -r -n 1 -p "Press any key to continue: "
|
||||
./"$AIDAN" U < blank.sudoku
|
||||
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
|
||||
echo 1>&2
|
||||
echo "What was the difference between the previous command?" 1>&2
|
||||
echo "More specifically, what did it do?" 1>&2
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to continue: "
|
||||
echo "$ echo IOCCC | ./$AIDAN" 1>&2
|
||||
echo IOCCC | ./"$AIDAN"
|
||||
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 1>&2
|
||||
echo "What just happened?" 1>&2
|
||||
echo 1>&2
|
||||
|
||||
echo 1>&2
|
||||
echo "$ echo IOCCC | ./$AIDAN 42 | less -r" 1>&2
|
||||
read -r -n 1 -p "Press any key to continue (q = exit pager space = go down a page): "
|
||||
echo IOCCC | ./"$AIDAN" 42 | less -r
|
||||
|
||||
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 1>&2
|
||||
echo "Seeing that, was the 'echo IOCCC' relevant?" 1>&2
|
||||
echo 1>&2
|
||||
|
||||
echo "$ ./$AIDAN < insane1.sudoku" 1>&2
|
||||
read -r -n 1 -p "Press any key to continue: "
|
||||
./"$AIDAN" < insane1.sudoku
|
||||
read -r -n 1 -p "Press any key to run: ./$AIDAN < insane1.sudoku (space = next page, q = quit): "
|
||||
./"$AIDAN" < insane1.sudoku | less -rEXF
|
||||
|
||||
read -r -n 1 -p "Do you with to run the test suite (y/n)? "
|
||||
if [[ "$REPLY" = "y" ]]; then
|
||||
if [[ "$REPLY" = "y" || "$REPLY" = "Y" ]]; then
|
||||
echo 1>&2
|
||||
echo "$ make test" 1>&2
|
||||
read -r -n 1 -p "Press any key to continue: "
|
||||
make test
|
||||
read -r -n 1 -p "Press any key to run: make test (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
make test | less -rEXF
|
||||
fi
|
||||
Reference in new issue
Block a user