diff --git a/1985/sicherman/try.alt.sh b/1985/sicherman/try.alt.sh index de1e3ebcc..90ac47ddc 100755 --- a/1985/sicherman/try.alt.sh +++ b/1985/sicherman/try.alt.sh @@ -33,5 +33,10 @@ echo 1>&2 read -r -n 1 -p "Press any key to run: ./sicherman.alt < sicherman.alt.c | ./sicherman.alt | diff -s - sicherman.alt.c: " echo 1>&2 +# This warning from ShellCheck is incorrect: +# +# SC2094 (info): Make sure not to read and write the same file in the same pipeline. +# +# shellcheck disable=SC2094 ./sicherman.alt < sicherman.alt.c | ./sicherman.alt | diff -s - sicherman.alt.c echo "Now explain any differences." 1>&2 diff --git a/1985/sicherman/try.sh b/1985/sicherman/try.sh index 1192b28b5..b515bd274 100755 --- a/1985/sicherman/try.sh +++ b/1985/sicherman/try.sh @@ -33,5 +33,11 @@ echo 1>&2 read -r -n 1 -p "Press any key to run: ./sicherman < sicherman.c | ./sicherman | diff -s - sicherman.c: " echo 1>&2 + +# This warning from ShellCheck is incorrect: +# +# SC2094 (info): Make sure not to read and write the same file in the same pipeline. +# +# shellcheck disable=SC2094 ./sicherman < sicherman.c | ./sicherman | diff -s - sicherman.c echo "Now explain any differences." 1>&2