help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange behaviour of read builtin


From: M. Nejat AYDIN
Subject: Re: Strange behaviour of read builtin
Date: Thu, 2 Jul 2020 19:19:30 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

On 7/2/20 6:50 PM, Chet Ramey wrote:
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."

I agree. It is reasonably concise and reflects the intention clearly.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]