bug-bash
[Top][All Lists]
Advanced

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

Re: here strings fold newlines on MacOS


From: Rich Lafferty
Subject: Re: here strings fold newlines on MacOS
Date: Sun, 31 Jan 2021 14:07:38 -0500

Ah, yep — sorry for the false positive. I *have* 5.1.0 installed (and bashbug 
picked that up!) but the context in which I encountered the bug was indeed 
Apple’s ancient version. I could’ve sworn I tested it in both, but clearly 
messed that up - verified it’s fixed in 5.1.0.

  -Rich

On Jan 31, 2021, 1:35 PM -0500, Chet Ramey <chet.ramey@case.edu>, wrote:
> 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/


reply via email to

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