[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange behaviour of read builtin
From: |
Chet Ramey |
Subject: |
Re: Strange behaviour of read builtin |
Date: |
Thu, 2 Jul 2020 11:50:48 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
On 7/2/20 11:19 AM, M. Nejat AYDIN wrote:
> On 7/2/20 6:08 PM, Chet Ramey wrote:
>> On 7/2/20 11:06 AM, M. Nejat AYDIN wrote:
>>
>>> I think now that it was intentional to make it possible
>>> to read a line as is, without having to modify the IFS variable.
>>
>> This is the case.
>>
>>> The wording does not reflect the intention clearly, in my opinion.
>>
>> How would you change it to make that more clear?
>
> Perhaps by appending "without word splitting" or words to that effect
Kind of, but what read does isn't exactly word splitting in the presence
of fewer variable arguments than words read.
Maybe something like "the line read, without the ending delimiter but
otherwise unmodified, is assigned to the variable REPLY."
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
- Strange behaviour of read builtin, M. Nejat AYDIN, 2020/07/01
- Re: Strange behaviour of read builtin, Greg Wooledge, 2020/07/01
- Re: Strange behaviour of read builtin, Eli Schwartz, 2020/07/01
- Re: Strange behaviour of read builtin, M. Nejat AYDIN, 2020/07/01
- Re: Strange behaviour of read builtin, Greg Wooledge, 2020/07/02
- Re: Strange behaviour of read builtin, M. Nejat AYDIN, 2020/07/02
- Re: Strange behaviour of read builtin, Chet Ramey, 2020/07/02
- Re: Strange behaviour of read builtin, Eli Schwartz, 2020/07/02
- Re: Strange behaviour of read builtin, Chet Ramey, 2020/07/02
- Re: Strange behaviour of read builtin, M. Nejat AYDIN, 2020/07/02
- Re: Strange behaviour of read builtin,
Chet Ramey <=
- Re: Strange behaviour of read builtin, M. Nejat AYDIN, 2020/07/02
- Re: Strange behaviour of read builtin, M. Nejat AYDIN, 2020/07/02