Re: Bash-5.1-beta available

2020-09-11 Thread Andreas Schwab
On Sep 10 2020, Chet Ramey wrote: > yy. Process substitution processes now get their input from /dev/null, since > they are asynchronous, not interactive, and not jobs. That breaks scripts that want to filter stdin with a process substitution, eg: while read ...; do ...; done < <(filter) Th

Re: Bash-5.1-beta available

2020-09-11 Thread Jesse Hathaway
On Fri, Sep 11, 2020 at 5:40 AM Andreas Schwab wrote: > The reason for using a process substitution is so that the loop can set > shell variables. Would using lastpipe be an option instead? lastpipe If set, and job control is not active, the shell runs

Re: Bash-5.1-beta available

2020-09-11 Thread Oğuz
11 Eylül 2020 Cuma tarihinde Andreas Schwab yazdı: > On Sep 10 2020, Chet Ramey wrote: > > > yy. Process substitution processes now get their input from /dev/null, > since > > they are asynchronous, not interactive, and not jobs. > > That breaks scripts that want to filter stdin with a proces

Re: Bash-5.1-beta available

2020-09-11 Thread Chet Ramey
On 9/11/20 6:39 AM, Andreas Schwab wrote: > On Sep 10 2020, Chet Ramey wrote: > >> yy. Process substitution processes now get their input from /dev/null, since >> they are asynchronous, not interactive, and not jobs. > > That breaks scripts that want to filter stdin with a process > substitut

Re: Bash-5.1-beta available

2020-09-11 Thread Andreas Schwab
On Sep 11 2020, Jesse Hathaway wrote: > On Fri, Sep 11, 2020 at 5:40 AM Andreas Schwab wrote: >> The reason for using a process substitution is so that the loop can set >> shell variables. > > Would using lastpipe be an option instead? No, the scripts are out there and will break. Andreas. --