Re: procsub doesn't release the terminal without reading one byte

2024-10-13 Thread Martin D Kealey
On Sun, 13 Oct 2024, 17:15 Oğuz, wrote: > On Sun, Oct 13, 2024 at 3:18 AM Chet Ramey wrote: > > You have two processes fighting over stdin. > > Why though? Can't bash just close the procsub's stdin when `:' returns? > Of course not. The operating system won't let processes meddle with each othe

Re: procsub doesn't release the terminal without reading one byte

2024-10-13 Thread Andreas Schwab
On Okt 13 2024, Oğuz wrote: > Why though? Can't bash just close the procsub's stdin when `:' returns? bash has no handle on the command's stdin. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely di

Re: procsub doesn't release the terminal without reading one byte

2024-10-13 Thread Oğuz
On Sun, Oct 13, 2024 at 3:18 AM Chet Ramey wrote: > You have two processes fighting over stdin. Why though? Can't bash just close the procsub's stdin when `:' returns?

Re: procsub doesn't release the terminal without reading one byte

2024-10-12 Thread Chet Ramey
On 10/9/24 2:01 PM, Oğuz wrote: The first letter I type after running this command won't show up on the terminal: : < <(cat) This is reproducible on 5.3 beta too. It's cat and the scheduler. You have two processes fighting over stdin. cat inherits stdin, and successfully reads one charac

Re: procsub doesn't release the terminal without reading one byte

2024-10-10 Thread Phi Debian
On Wed, Oct 9, 2024 at 8:02 PM Oğuz wrote: > The first letter I type after running this command won't show up on > the terminal: > > : < <(cat) > > This is reproducible on 5.3 beta too. > > Oğuz > > May be your 1st char is eaten by the dangling cat(1) >From /dev/pts/0 === ┌─none

procsub doesn't release the terminal without reading one byte

2024-10-09 Thread Oğuz
The first letter I type after running this command won't show up on the terminal: : < <(cat) This is reproducible on 5.3 beta too. Oğuz