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/