Fix 2004/sds/try.sh for README.md changes

Commit cbc022d864 which edited
2004/sds/README.md broke the functionality of one of the features of the
code so the previous revision of README.md was copied to README_sds.md
and the script now uses that file.

This does mean the manifest is out of date and that will have to be
fixed another time but now the script works okay. Without this one of
the files to be compiled does not compile at all and it seems better
this way than to tamper with the code especially given what the entry
does and because it would take more time to fix anyway.
This commit is contained in:
Cody Boone Ferguson committed 2024-03-25 06:08:10 -07:00
1 parent 5b0f40ad62
commit 85f35ecbe5
5 files changed
+145 -16

No files matched your search

+6 -6
View File
@@ -30,10 +30,10 @@ echo 1>&2
make encoder 2>/dev/null
echo 1>&2
echo "$ ./encoder README.md <sds.c | tee sds_msg.c" 1>&2
echo "$ ./encoder README_sds.md <sds.c | tee sds_msg.c" 1>&2
read -r -n 1 -p "Press any key to continue (space = next page, q = quit): "
echo 1>&2
./encoder README.md <sds.c | tee sds_msg.c | less -rEXFK
./encoder README_sds.md <sds.c | tee sds_msg.c | less -rEXFK
read -r -n 1 -p "Press any key to run: make sds_msg 2>/dev/null: "
echo 1>&2
@@ -55,15 +55,15 @@ echo 1>&2
echo 'Hello, World!' > message
echo 1>&2
echo "$ ./encoder message < README.md | tee remarks.md" 1>&2
echo "$ ./encoder message < README_sds.md | tee remarks.md" 1>&2
read -r -n 1 -p "Press any key to continue (space = next page, q = quit): "
echo 1>&2
./encoder message < README.md | tee remarks.md | less -rEXFK
./encoder message < README_sds.md | tee remarks.md | less -rEXFK
echo 1>&2
read -r -n 1 -p "Press any key to run: diff remarks.md README.md (space = next page, q = quit): "
read -r -n 1 -p "Press any key to run: diff remarks.md README_sds.md (space = next page, q = quit): "
echo 1>&2
diff remarks.md README.md | less -rEXFK
diff remarks.md README_sds.md | less -rEXFK
echo "Did you notice how similar they are?" 1>&2
echo 1>&2