[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
Re: bug or feature? Ctrl+C sometimes can't interrupt a loop with multiple enclosed pipes
Mon, 28 Jun 2010 22:03:14 -0400
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:22.214.171.124) 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
> 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.
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/