3 T=$(mktemp "${TMPDIR:-/tmp}/sh-test.XXXXXXXX") || exit
6 # A naive pgetc_linecont() would push back two characters here, which
7 # fails if a new buffer is read between the two characters.
15 printf 'v=%s\n' "$c" >"$T"
17 if [ "${#v}" != 4096 ]; then
18 echo "Length is bad (${#v})"
22 *[!A]*) echo "Content is bad"; exit 3 ;;