Re: document that read built-in can't return zero-length string in the m
From:
Robert Elz
Subject:
Re: document that read built-in can't return zero-length string in the middle of input
Date:
Fri, 12 Jan 2024 15:26:31 +0700
Date: Thu, 11 Jan 2024 20:02:04 -0500
From: Greg Wooledge <greg@wooledge.org>
Message-ID: <ZaCPjAscvwrwurcJ@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