[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: here strings fold newlines on MacOS
From: |
Chet Ramey |
Subject: |
Re: here strings fold newlines on MacOS |
Date: |
Sun, 31 Jan 2021 13:35:28 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 |
On 1/30/21 5:44 PM, Rich Lafferty wrote:
Bash Version: 5.1
Patch Level: 0
Release Status: release
Description:
Here strings ('<<<') fold newlines into spaces on MacOS, but not on Linux,
leading to incompatibilites in bash code expected to work the same on both
platforms.
This was fixed quite a while back, but still after Apple froze its version
of bash at 3.2.57. Maybe you should file a bug report with Apple.
(Just kidding, they don't care.)
--
``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/