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: Dale R. Worley
Subject: Re: bash 5.1 heredoc pipes problematic, shopt needed
Date: Sat, 23 Apr 2022 11:35:06 -0400

Sam Liddicott <sam@liddicott.com> writes:
>         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.
>
>         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.

Ugh!  Because of course, the bash manual does not specify that a here
document input will be a file, just that it will be an FD from which the
text can be read.

Dale



reply via email to

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