[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trailing newlines disappear
From: |
Chet Ramey |
Subject: |
Re: Trailing newlines disappear |
Date: |
Mon, 12 Jun 2017 15:54:09 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
On 6/9/17 1:40 PM, Peter & Kelly Passchier wrote:
> On 09/06/2560 23:38, L A Walsh wrote:
>> Chet Ramey wrote:
>>>
>>> Should mapfile silently drop the NULs?
>>
>> Maybe add a flag to ignore NUL bytes that could be used in the 'read'
>> statement as well? If not specified, keep same behavior?
>
> That sounds like it might be useful.
> It might be more desirable to change it to a newline instead of dropping
> it? (Or both, with different flags??)
If you want to effectively change it to a newline, specify NUL as the
line delimiter using the -d option (new in bash-4.4).
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- Re: Trailing newlines disappear, (continued)
- Re: Trailing newlines disappear, L A Walsh, 2017/06/09
- Re: Trailing newlines disappear, Peter & Kelly Passchier, 2017/06/09
- Re: Trailing newlines disappear, Pierre Gaston, 2017/06/09
- Re: Trailing newlines disappear, Greg Wooledge, 2017/06/09
- Storing NUL in variables, George, 2017/06/09
- Re: Storing NUL in variables, Pierre Gaston, 2017/06/10
- Re: Storing NUL in variables, George, 2017/06/11
- Re: Trailing newlines disappear,
Chet Ramey <=
- Re: Trailing newlines disappear, Peter & Kelly Passchier, 2017/06/12
- Re: Trailing newlines disappear, Chet Ramey, 2017/06/13
- Re: Trailing newlines disappear, Peter & Kelly Passchier, 2017/06/13
- Re: Trailing newlines disappear, PePa, 2017/06/09