Re: bash passes changed termios to backgrounded process(es) groups?
From:
Steffen Nurpmeso
Subject:
Re: bash passes changed termios to backgrounded process(es) groups?
Date:
Wed, 28 Aug 2024 01:51:58 +0200
User-agent:
s-nail v14.9.25-599-g5c75a327b2
Steffen Nurpmeso wrote in
<20240827234659.1xfh6CZb@steffen%sdaoden.eu>:
...
|..and it seems that if bash starts a normal process then ICRNL is
|set, but if it starts a (process)& or only process&, then not!
Yeah, and it seems to me it should not, since programs have to
fetch the terminal defaults in order to be able to properly
restore them, and unfortunately we restored without ICRNL thus.
I consider to do
./lib/sh/shtty.c: ttp->c_iflag |= ICRNL; /* make sure we get CR->NL on
input */
myself always, but of course then *i* as a secondary (at best)
process modify the terminal settings in a way others could fail to
correct. (I mean, surely, a job control shell will fix that, but
it is not nice, anyway.)
Ciao!
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)