[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug or feature? Ctrl+C sometimes can't interrupt a loop with multipl
From: |
Chet Ramey |
Subject: |
Re: bug or feature? Ctrl+C sometimes can't interrupt a loop with multiple enclosed pipes |
Date: |
Mon, 28 Jun 2010 22:03:14 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 |
On 6/28/10 9:06 AM, Ilya Basin wrote:
> Bash Version: 4.1
> Patch Level: 7
> Release Status: release
>
> Description:
> Sample script included.
> When I press Ctrl+C, only the inside loop is interrupted. The outside loop
> keeps going.
> In zsh and in old plain sh Ctrl+C works.
Thanks for the report. The key is the shell control structure in a
pipeline calling an external command that dies due to SIGINT. This
will be fixed in bash-4.2.
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/