[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trap DEBUG failure after Ctrl-C pressed
From: |
Chet Ramey |
Subject: |
Re: trap DEBUG failure after Ctrl-C pressed |
Date: |
Fri, 30 Jan 2015 13:25:08 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
On 1/30/15 1:51 AM, Chih-Chieh Chou wrote:
> # trap 'echo cmd=$BASH_COMMAND' DEBUG
> # trap 'echo Ctrl-C pressed' SIGINT
> cmd=trap 'echo Ctrl-C pressed' SIGINT
You don't say anything about what version of bash you're using or what
system you're running it on, but I could not reproduce this using
bash-4.3.33.
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/