[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Obscure issue with process substitution since bash-5.0.016 upgrade
From: |
Chet Ramey |
Subject: |
Re: Obscure issue with process substitution since bash-5.0.016 upgrade |
Date: |
Thu, 2 Apr 2020 17:19:55 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 4/1/20 10:15 PM, Joan Bruguera Micó wrote:
> I'm having a problem with a script that used to work, which I reduced
> to the following test case:
>
> #!/bin/bash
>
> function docat() {
> for x in 1 2 3 ; do true; done
> cat "$@"
> }
>
> for x in $(seq 25); do
> docat <(echo a) <(echo a) <(echo a) <(echo a) <(echo a) <(echo a)
> done
>
> Expected behaviour: A lot of lines with an "a" are printed
Thanks for the report.
Yes, this is a problem, as you discovered, with bash-5.0 patch 16. There is
a better way to solve the problem that patch attempts to solve, and the
enclosed patch to bash-5.0.16 does it.
Chet
--
``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/
close-new-fifos.patch
Description: Text document