Re: Does bash save/restore terminal settings as required by POSIX job control?

2020-06-23 Thread Chet Ramey
On 6/22/20 9:26 PM, Godmar Back wrote: > In any event, this was very illuminating - though I have one last > question: why did you not implement it? It's not a requirement. The text you quoted is from the rationale, and there is no corresponding text in the normative portion of the standard.

Re: Does bash save/restore terminal settings as required by POSIX job control?

2020-06-22 Thread Godmar Back
On Mon, Jun 22, 2020 at 6:28 PM Chet Ramey wrote: > > > > > Thank you for your reply. Could you share any insights why bash > > doesn't follow POSIX in this regard, like zsh, but unlike ksh, tcsh, > > and dash/ash? > > ksh93u+ 2012-08-01 on RHEL 7 does do this. > > tcsh isn't a POSIX shell, so I

Re: Does bash save/restore terminal settings as required by POSIX job control?

2020-06-22 Thread Chet Ramey
On 6/22/20 5:51 PM, Godmar Back wrote: > You are correct that they then preserve the state upon exit. > I wasn't aware of that, but it makes a lot of sense - otherwise, "stty > sane" wouldn't work, or even be necessary (not necessary if the shell > always restored the state it had upon startup.)

Re: Does bash save/restore terminal settings as required by POSIX job control?

2020-06-22 Thread Godmar Back
On Mon, Jun 22, 2020 at 5:19 PM Chet Ramey wrote: > > On 6/22/20 4:48 PM, Godmar Back wrote: > > (Disclosure: I performed a search for terminal, terminal settings, > > tcsetattr in the bash-bug mailing list, without finding a discussion. > > My apologies if this is a known issue or was already

Re: Does bash save/restore terminal settings as required by POSIX job control?

2020-06-22 Thread Chet Ramey
On 6/22/20 4:48 PM, Godmar Back wrote: > (Disclosure: I performed a search for terminal, terminal settings, > tcsetattr in the bash-bug mailing list, without finding a discussion. > My apologies if this is a known issue or was already discussed.) > > Hi, > > according to POSIX Part A, Base

Does bash save/restore terminal settings as required by POSIX job control?

2020-06-22 Thread Godmar Back
(Disclosure: I performed a search for terminal, terminal settings, tcsetattr in the bash-bug mailing list, without finding a discussion. My apologies if this is a known issue or was already discussed.) Hi, according to POSIX Part A, Base Definitions (line 726-728, pg 20, Part A: Base