Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ABEL.MATH.UIUC.EDU!skl From: skl@ABEL.MATH.UIUC.EDU (Soren Lundsgaard) Newsgroups: gnu.bash.bug Subject: trap bug? Message-ID: <9002270524.AA16485@abel.math.uiuc.edu> Date: 27 Feb 90 05:24:52 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 17 I ran the following script, and typed a ctrl/c in the middle of it. I got a longjump botch and a core dump. this is bash 1.03 compiled under ultrix 3.0 and running under ultrix 3.1. I think that I am using trap correctly. It runs correctly under sys5 shell (/bin/sh5 on Ultrix). Please note that I have NOT tested this in bash 1.04 here is the script. trap "trap '' 0 ; echo exiting ; exit 0" 0 1 2 3 15 while : do echo in the loop sleep 1 done skl@uiuc.edu