...or I guess more specifically, can I require that input from STDIN (or closest alternative, e.g. TIO) be newline terminated?
Utilising apps like TIO this isn't added, but if using a terminal with
<<< a newline is appended, it can only be omitted using something like
echo -n ... | script. I've definitely used either as it suits me, but I don't know if that's appropriate or not.
This has an answer in the I/O defaults
Thanks to @Bubbler for clarifying.
My read on this is that you may specify either way as your answer requires.