Author: Russ P.
Date: Jun 8, 2010 08:14
On Jun 4, 11:08 am, Jon LaBadie aXcXm.org> wrote:
> Russ P. wrote:
>> Kenny, I was just thinking about the claim you made earlier that
>> trap 'exit' INT TERM
>> is unnecessary in a bash script, because it is the default behavior.
>> Then someone (with embarrassing points where he shouldn't have them)
>> rudely replied that you were wrong. Well, I'd like to know *why* that
>> isn't the default behavior. I have a hard time imagining a use case
>> where I *don't* want my script to exit when I hit ctrl-c or try to
>> kill it. And if I *did* want that behavior for some strange reason, I
>> could easily override the default. Shouldn't behavior that the vast
>> majority of users want, rather than behavior than virtually no one
>> wants, be the default?
>> So unless I'm missing something, I'd call that default behavior a
>> significant design flaw of bash.
> My understanding of signals is dated and unix-based. I'm sure someone ...