Date: Thu, 11 Jan 2024 20:02:04 -0500 From: Greg Wooledge <g...@wooledge.org> Message-ID: <zacpjascvwrwu...@wooledge.org>
| What actually counts is how many | characters are *stored* in the variable, not how many characters are | *read* from the input. I suspect that is the root of the issue here, you're considering the word "read" to mean read(2) whereas as it is in the documentation for the read command, I suspect it means that one, how many characters the read command obtains, rather than how many the read system call processes (like elided newlines. when -r is not used, would also not be counted, or expected to be, right?) kre