Here is my bash session:
lrwx------ 1 stas stas 64 Mar 5 18:18 0 -> /dev/pts/0
lrwx------ 1 stas stas 64 Mar 5 18:18 1 -> /dev/pts/0
lrwx------ 1 stas stas 64 Mar 5 18:18 2 -> /dev/pts/0
We see that bash both reads from and writes to /dev/pts/0
. My question is: how come the process doesn't read what it just wrote there? What makes only master pty
receive the data?