Re: procsub doesn't release the terminal without reading one byte
From:
Phi Debian
Subject:
Re: procsub doesn't release the terminal without reading one byte
Date:
Thu, 10 Oct 2024 12:22:27 +0200
On Wed, Oct 9, 2024 at 8:02 PM Oğuz <oguzismailuysal@gmail.com> 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 /home/phi
└─PW$ : < <(cat)
┌─none /home/phi
└─PW$
>From /dev/pts/1
===============
┌─none /home/phi
└─PW$ psg cat
phi 21786 21181 0 12:17 pts/0 00:00:00 cat
┌─none /home/phi
└─PW$ psg cat
phi 21786 21181 0 12:17 pts/0 00:00:00 cat
┌─none /home/phi
└─PW$ kill -9 21786
>From /dev/pts/0 again
===============
┌─none /home/phi
└─PW$ echo yo
yo
Note you can get a better effect with
┌─none /home/phi
└─PW$ : < <(sed '') # :-)