Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: =?UTF-8?Q?Joan_Bruguera_Mic=C3=B3?= Newsgroups: gnu.bash.bug Subject: Re: Obscure issue with process substitution since bash-5.0.016 upgrade Date: Fri, 3 Apr 2020 03:50:00 +0200 Lines: 49 Approved: bug-bash@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1585895112 30930 209.51.188.17 (3 Apr 2020 06:25:12 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org To: chet.ramey@case.edu Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=u8m94ewmTrkT9jUDjzQ5ThehrKR/YMDtg7VIXH/U8tU=; b=SVoGInBFWEcjITbmqomAp7DpTx1t/ayaaBgk+cX8YBFXnkwSDkmKcKqeM9F1xxO0b4 d+okDGP2R1pdOQAfaMQVfgsn+JtJ225P8VN8s+td6ZYRBrLIP+wMPo+TYHGZsTnCK2IE zqKASWnsoHjPNF077hzYBi45KvtmtEM/XUV7c5OTa+vuw6dFvbcwWcmPYPxmnXM2l3ct w7bkMp/5HwNx7OMNtsyMykXzMWHEbfF3LQnJ4I3xYquNAdm5L/Efgtd0CbVc56BG4nLD Fh1+pjY/pMWXzLVLl4uCzR0+JZw+EyT4p+eJ+/dS2ZHM9vEkowDRDWMaQBPvr4QWrqzT F+vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=u8m94ewmTrkT9jUDjzQ5ThehrKR/YMDtg7VIXH/U8tU=; b=oMoQHmjTk3JBKZOhf9tFma7l5B3VHc1YxfU/Z6iMYK+Blu+dXR3x9dp99KvEvDb+5G KN3NsWc1gkFm4XXSOooOb6xcs5aSo/a+06NUR/KKmyKskupQTSenC9hylWL6QLfXvFQs 3m8/Khhtx0mdrhJs4N9FazXEW/gW+78yUvYsW0Gu1TrS1rxmNH+JlctBmajru/j/mbQ3 EVm1XqKC6S/4vd112kajTSkmjsfh1TJ8h0AvO6pfCqrIo89onTxL1e2PuQ8VtZpYtnn+ mXWcBRjlr3P9h2WzVDDyG6nExTy97R9YY+PjyDWiVXJV6nqXPm46Nf+v10Agz43k9oPx rO9w== X-Gm-Message-State: AGi0PubTkLw3MBtW5eDESD8vQGP1jNzTV3QFEFMOEf+4+0o0ONIFrouO FkcYfd4q0BE7M98B4fmPNIJtfk4mvjyj5Z9DV2I= X-Google-Smtp-Source: APiQypIPcI09/snaK5ARoy66Cf87FKc3LJCY7GS8Ftz0bCNjPmOOzcS+diWIiTNwlJQ6k5gIWV2RD+b8AbD/iDnhUMw= X-Received: by 2002:adf:a55b:: with SMTP id j27mr6174413wrb.418.1585878626423; Thu, 02 Apr 2020 18:50:26 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b X-Mailman-Approved-At: Fri, 03 Apr 2020 02:25:11 -0400 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com gnu.bash.bug:16079 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 wrote: > > On 4/1/20 10:15 PM, Joan Bruguera Mic=C3=B3 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/ --=20 Joan Bruguera Mic=C3=B3 - PGP key id: 88A7 A061 6B47 0CE1 EB4E D431 8744 44D1 21CE B72E