Re: Commentary on: Bash Command Leads to ...

Chet Ramey <[email protected]>
Newsgroups gmane.comp.shells.bash.bugs
Message-ID <[email protected]>
On 1/31/26 8:47 AM, Stan Marsh wrote:

> Given that, I would like to point out that tcsh, to its credit, always resets the terminal
> to "sane" before prompting for user input.  This is a Good Thing and something that
> (IMNSHO), bash should also do.

Bash saves the tty state before each foreground command, and restores the
saved tty settings if the command stops or terminates due to a signal.
Otherwise, the shell has to provide a builtin that mimics some or all of
`stty'.

The OP's function defeats that.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.