diff --git a/2018/poikola/README.md b/2018/poikola/README.md index c647de8cc..2271a795e 100644 --- a/2018/poikola/README.md +++ b/2018/poikola/README.md @@ -95,7 +95,7 @@ problem. The main reason for the header `unistd.h` is `getdelim(3)` but once I included it I also abused other functions and `#define`s. This header is mutually exclusive -with _-std=c11_. +with `-std=c11`. The program was developed with little-endian machines; I tried to support big-endian too, but this support is somewhat limited. diff --git a/2018/poikola/try.sh b/2018/poikola/try.sh index 734a07eba..9988aea3d 100755 --- a/2018/poikola/try.sh +++ b/2018/poikola/try.sh @@ -15,11 +15,12 @@ make CC="$CC" all >/dev/null || exit 1 # clear screen after compilation so that only the entry is shown clear - -clear -read -r -n 1 -p "Press any key to show code (space = next page, q = quit): " +read -r -n 1 -p "Press any key to show prog.c (space = next page, q = quit): " echo 1>&2 -less -EXF prog.c -read -r -n 1 -p "Press any key to run program: " +less -rEXFK prog.c +echo 1>&2 + +read -r -n 1 -p "Press any key to run: ./prog: " echo 1>&2 ./prog +echo 1>&2