From owner-freebsd-bugs Thu Jul 29 18:30: 7 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 0E95A15629 for ; Thu, 29 Jul 1999 18:30:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA96145; Thu, 29 Jul 1999 18:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 770A614EFD; Thu, 29 Jul 1999 18:23:00 -0700 (PDT) Message-Id: <19990730012300.770A614EFD@hub.freebsd.org> Date: Thu, 29 Jul 1999 18:23:00 -0700 (PDT) From: rdm@cfcl.com To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: bin/12877: interactive /bin/sh ignores ^C and ^Z in while loops Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12877 >Category: bin >Synopsis: interactive /bin/sh ignores ^C and ^Z in while loops >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 29 18:30:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Rich Morin >Release: 2.2.8 (also broken in 3.2) >Organization: Canta Forda Computer Laboratory >Environment: FreeBSD cfcl.com 2.2.8-RELEASE FreeBSD 2.2.8-RELEASE #0: Fri Jan 15 18:39:18 PST 1999 rdm@cfcl.com:/usr/src/sys/compile/FREEBIE i386 >Description: If I type a while loop into sh, then try to ^C or ^Z out, the shell refuses to go away. FWIW, the session below is being run in a telnet window from a Mac, using tcsh as the login shell, but folks on other systems have replicated the problem. The bug is present in both FreeBSD 2.2.8 and 3.2. >How-To-Repeat: % sh $ while :; do > echo foo > sleep 60 > done foo [Interrupt Process] <- ^C hit [Interrupt Process] <- ^C hit ^Z%1 Suspended <- ^Z hit foo ^Z%2 Suspended <- ^Z hit foo >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message