From owner-freebsd-hackers Tue Dec 22 04:50:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA12213 for freebsd-hackers-outgoing; Tue, 22 Dec 1998 04:50:06 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA12159 for ; Tue, 22 Dec 1998 04:50:02 -0800 (PST) (envelope-from rivers@dignus.com) Received: from smtp1.vnet.net (smtp1.vnet.net [166.82.1.31]) by freefall.freebsd.org (8.8.8/8.8.5) with ESMTP id EAA14735 for ; Tue, 22 Dec 1998 04:50:03 -0800 (PST) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp1.vnet.net (8.9.1a/8.9.1) with ESMTP id HAA22141; Tue, 22 Dec 1998 07:50:02 -0500 (EST) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.1/8.8.5) with ESMTP id IAA27157; Tue, 22 Dec 1998 08:37:30 -0500 (EST) Received: (from rivers@localhost) by lakes.dignus.com (8.9.1/8.6.9) id HAA22231; Tue, 22 Dec 1998 07:51:10 -0500 (EST) Date: Tue, 22 Dec 1998 07:51:10 -0500 (EST) From: Thomas David Rivers Message-Id: <199812221251.HAA22231@lakes.dignus.com> To: cracauer@cons.org, freebsd-hackers@freefall.cdrom.com, rivers@dignus.com Subject: Re: Interesting un-interruptible shell script on 3.0-RELEASE (possible sh bug?) In-Reply-To: <19981222134641.A12019@cons.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In <199812220243.VAA21066@lakes.dignus.com>, Thomas David Rivers wrote: > > > > Try the following on a 3.0-RELEASE system, under the bourne shell: > > > > while true > > do > > sleep 2 > > done > > Sorry, this works for me. I'm on current, but sh didn't change since > 3.0-RELEASE. > > What does this show? > ktrace sh thisscript > kdump | grep sleep > > BTW, an easier way to have an endless look is > while : ; do sleep 2 ; done > > Martin > -- Martin brings up an interesting 'twist' on this. If you place the script in a file; the control-C works just fine (on a 3.0-RELEASE system.) Martin - did you place the small script in a file and run the file? If so, can you try simply typing it on the sh's command line and seeing if control-C works/doesn't work. - Dave Rivers - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message