bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SIGINT kills interactive shell from dot script


From: Chet Ramey
Subject: Re: SIGINT kills interactive shell from dot script
Date: Tue, 8 Nov 2016 09:38:39 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

On 11/7/16 7:54 AM, Martijn Dekker wrote:

> But it's really helped that bash turns out to have another unique
> behaviour: apparently, bash refuses to ignore SIGINT on interactive
> shells. So, for interactive bash, the workaround is simply to avoid
> using "trap - INT" to unignore the signal.

What do you mean? If you run 'trap "" SIGINT' in an interactive shell,
bash will let you happily pound on ^C on your keyboard all day long
without doing anything.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]