[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
- bash 5.1 heredoc pipes problematic, shopt needed, Sam Liddicott, 2022/04/22
- Re: bash 5.1 heredoc pipes problematic, shopt needed, Sam Liddicott, 2022/04/22
- Re: bash 5.1 heredoc pipes problematic, shopt needed,
Dale R. Worley <=
- Re: bash 5.1 heredoc pipes problematic, shopt needed, Lawrence Velázquez, 2022/04/23
- Re: bash 5.1 heredoc pipes problematic, shopt needed, Ángel, 2022/04/24
- Re: bash 5.1 heredoc pipes problematic, shopt needed, Oğuz, 2022/04/24
- Re: bash 5.1 heredoc pipes problematic, shopt needed, Lawrence Velázquez, 2022/04/24
- Re: bash 5.1 heredoc pipes problematic, shopt needed, Sam Liddicott, 2022/04/24
- Re: bash 5.1 heredoc pipes problematic, shopt needed, Chet Ramey, 2022/04/25
- Re: bash 5.1 heredoc pipes problematic, shopt needed, Chet Ramey, 2022/04/25
- Re: bash 5.1 heredoc pipes problematic, shopt needed, Ángel, 2022/04/28
Re: bash 5.1 heredoc pipes problematic, shopt needed, Alexey, 2022/04/24