bug-bash
[Top][All Lists]
Advanced

[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: Joan Bruguera Micó
Subject: Re: Obscure issue with process substitution since bash-5.0.016 upgrade
Date: Fri, 3 Apr 2020 03:50:00 +0200

Thanks for your attention and the provided reduced patch. I can
confirm that, applied over bash-5.0.16, this solves my issue, both on
the test case as well as the bigger application from which it was
extracted.

Regards,
- Joan Bruguera

On Thu, 2 Apr 2020 at 23:20, Chet Ramey <address@hidden> wrote:
>
> 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    address@hidden    http://tiswww.cwru.edu/~chet/



-- 

Joan Bruguera Micó - PGP key id: 88A7 A061 6B47 0CE1 EB4E  D431 8744
44D1 21CE B72E



reply via email to

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