|
From: | Alexey |
Subject: | Re: bash 5.1 heredoc pipes problematic, shopt needed |
Date: | Tue, 26 Apr 2022 01:05:58 +0400 |
User-agent: | Mail UserAgent |
On 2022-04-26 00:54, Chet Ramey wrote:
On 4/25/22 4:33 PM, Alexey wrote:My key point that we have two choices for future: - make read from pipe faster, orYou mean the read builtin, right? I already explained those semantics.- provide options for force here-string to use temp files.Yes, the absolute worst case scenario has a performance penalty. The question is how that affects things that run in real life scenarios. I think making this a shell compatiblity mode option is the best place to start.I don't see any other options for fast-enough performance.Since you don't define `fast-enough', it's not really a question that can be answered.
Sure, I'll try to provide you more real life scenario later rather than just empty for loop.
But getting performance degradation comparing to bash4.4 (which always use temp files for here-string) it's sad evolution.
p.s. I disagreed that I should choose other script languages (not bash or other shells) for performance critical tasks if we are talking about system interactions. Bash is great suitable for most admins tasks.
[Prev in Thread] | Current Thread | [Next in Thread] |