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:38:01 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

On 4/22/22 9:51 AM, Sam Liddicott wrote:

Bash Version: 5.1
Patch Level: 16
Release Status: release

Description:
         Listed in the changes:
         c. Here documents and here strings now use pipes for the expanded
            document if it's smaller than the pipe buffer size, reverting
            to temporary files if it's larger.

OK. Keep in mind this is already 18 months old, and that bash-5.2 is in
beta.


         This causes problems with many programs suffering from the TOCTOU
         bug of checking whether or not the input is actually a file
         instead of just using it as one.

This seems like something that is perfectly suited for compatibility mode.
The shell options aren't intended to expose internal implementation
choices.

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