Re: Shouldn't this script terminate on ^C?

2013-02-20 Thread Nikolaus Schulz
On Tue, Feb 19, 2013 at 03:17:55PM -0500, Chet Ramey wrote: > On 2/19/13 1:42 PM, Nikolaus Schulz wrote: > > Please consider this bash script: > > > > : | while true; do sleep 1; done > > echo "After loop" > > > > If I hit ^C while it runs,

Shouldn't this script terminate on ^C?

2013-02-19 Thread Nikolaus Schulz
Please consider this bash script: : | while true; do sleep 1; done echo "After loop" If I hit ^C while it runs, shouln't it terminate? I have tested bash versions 4.2.37(1)-release, 4.1.5(1)-release, and 3.2.39(1)-release. (Debian Sid, Squeeze and Lenny.) All these bash versions output "Aft