[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Terminal messed up after exiting bash
From: |
Chet Ramey |
Subject: |
Re: Terminal messed up after exiting bash |
Date: |
Tue, 09 Sep 2014 15:02:40 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 9/9/14, 4:02 AM, Jan Rome wrote:
> I use ash to run a script which has #!/bin/bash
> if I run bash and then run the script, the script exits to bash, and if i
> then exit bash back to ash, I dont see the problem.
The reason is the same as the one in my reply from yesterday to a different
report: bash saves the terminal state before running a command and restores
it if that command exits due to a signal. This masks any effects of a
command -- including the one in the original report -- leaving the terminal
in an unusable state.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/