bug-bash
[Top][All Lists]
Advanced

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

Re: bash 5.1 heredoc pipes problematic, shopt needed


From: Chet Ramey
Subject: Re: bash 5.1 heredoc pipes problematic, shopt needed
Date: Mon, 25 Apr 2022 10:40:39 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

On 4/24/22 1:53 PM, Ángel wrote:
On 2022-04-23 at 14:46 -0400, Lawrence Velázquez wrote:
On Fri, Apr 22, 2022, at 9:51 AM, Sam Liddicott wrote:
Fix:
         Please could we at least have a shopt to maintain the old
behaviour?

Perhaps BASH_COMPAT=5.0 could be extended to handle this.

I think a shopt makes more sense. Forcing heredocs to be files although
something legit to request, is more a caller workaround to bugs in
called programs.

Shell options aren't intended to cater to broken programs; that's what the
compatibility mode is for.

It's not `legit to request'; the only thing guaranteed is that the user
will get a file descriptor they can read from.

--
``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]