Re: bash 5.1 heredoc pipes problematic, shopt needed

2022-04-24 Thread Alexey via Bug reports for the GNU Bourne Again SHell
On 2022-04-25 01:02, Greg Wooledge wrote: On Mon, Apr 25, 2022 at 12:26:46AM +0400, Alexey via Bug reports for the GNU Bourne Again SHell wrote: My pipe size is 4kb, but... ulimit -p 8 $ ulimit -a [...] pipe size(512 bytes, -p) 8 Always check the units. I have checked un

Re: bash 5.1 heredoc pipes problematic, shopt needed

2022-04-24 Thread Greg Wooledge
On Mon, Apr 25, 2022 at 12:26:46AM +0400, Alexey via Bug reports for the GNU Bourne Again SHell wrote: > My pipe size is 4kb, but... > ulimit -p > 8 $ ulimit -a [...] pipe size(512 bytes, -p) 8 Always check the units.

Re: bash 5.1 heredoc pipes problematic, shopt needed

2022-04-24 Thread Sam Liddicott
Thanks for that important context. Chet Ramey once said: > One can argue that the concerns on either side (seeking on stdin vs. > assuming that here-strings will never hit the file system) are assumptions > that should not be made, In reality no-one is making such an assumption, neither idea ente

Re: bash 5.1 heredoc pipes problematic, shopt needed

2022-04-24 Thread Alexey via Bug reports for the GNU Bourne Again SHell
On 2022-04-22 17:51, Sam Liddicott wrote: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security

Re: bash 5.1 heredoc pipes problematic, shopt needed

2022-04-24 Thread Lawrence Velázquez
> On Apr 24, 2022, at 3:41 PM, Oğuz wrote: > > 24 Nisan 2022 Pazar tarihinde Ángel yazdı: >> >> 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. >> > > https://lists.gnu.org/archiv

Re: bash 5.1 heredoc pipes problematic, shopt needed

2022-04-24 Thread Oğuz
24 Nisan 2022 Pazar tarihinde Ángel yazdı: > > 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. > https://lists.gnu.org/archive/html/bug-bash/2020-12/msg00084.html -- Oğuz

Re: bash 5.1 heredoc pipes problematic, shopt needed

2022-04-24 Thread Ángel
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 s