[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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
- document that read built-in can't return zero-length string in the middle of input, ilya Basin, 2024/01/11
- Re: document that read built-in can't return zero-length string in the middle of input, Chet Ramey, 2024/01/11
- Re: document that read built-in can't return zero-length string in the middle of input, Greg Wooledge, 2024/01/11
- Re: document that read built-in can't return zero-length string in the middle of input, alex xmb sw ratchev, 2024/01/11
- Re: document that read built-in can't return zero-length string in the middle of input, Ángel, 2024/01/11
- Re: document that read built-in can't return zero-length string in the middle of input,
Robert Elz <=
- Re: document that read built-in can't return zero-length string in the middle of input, Greg Wooledge, 2024/01/12
- Re: document that read built-in can't return zero-length string in the middle of input, Robert Elz, 2024/01/12
- Re: document that read built-in can't return zero-length string in the middle of input, Lawrence Velázquez, 2024/01/12
- Re: document that read built-in can't return zero-length string in the middle of input, Greg Wooledge, 2024/01/12
- Re: document that read built-in can't return zero-length string in the middle of input, Chet Ramey, 2024/01/15
- Re: document that read built-in can't return zero-length string in the middle of input, alex xmb sw ratchev, 2024/01/15