From owner-freebsd-hackers Mon Dec 21 19:04:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA08467 for freebsd-hackers-outgoing; Mon, 21 Dec 1998 19:04:40 -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 TAA08462 for ; Mon, 21 Dec 1998 19:04:37 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by freefall.freebsd.org (8.8.8/8.8.5) with ESMTP id TAA18459 for ; Mon, 21 Dec 1998 19:04:36 -0800 (PST) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id NAA01542; Tue, 22 Dec 1998 13:33:54 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id NAA08709; Tue, 22 Dec 1998 13:33:54 +1030 (CST) Message-ID: <19981222133354.C85005@freebie.lemis.com> Date: Tue, 22 Dec 1998 13:33:54 +1030 From: Greg Lehey To: Thomas David Rivers , freebsd-hackers@freefall.cdrom.com Subject: Re: Interesting un-interruptible shell script on 3.0-RELEASE (possible sh bug?) References: <199812220243.VAA21066@lakes.dignus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199812220243.VAA21066@lakes.dignus.com>; from Thomas David Rivers on Mon, Dec 21, 1998 at 09:43:24PM -0500 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday, 21 December 1998 at 21:43:24 -0500, Thomas David Rivers wrote: > > Try the following on a 3.0-RELEASE system, under the bourne shell: > > while true > do > sleep 2 > done > > You'll quickly discover there's no way to interrupt it (i.e. control-C > if that's your intr character.) Right. It's obviously a sh problem; it works fine under bash. How about a PR (with a solution if possible :-) Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message