Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!GIBBS.PHYSICS.PURDUE.EDU!ray From: ray@GIBBS.PHYSICS.PURDUE.EDU (Ray Moody) Newsgroups: gnu.bash.bug Subject: ksh's trap "" ERR Message-ID: <8906132238.AA19998@gibbs.physics.purdue.edu> Date: 13 Jun 89 22:38:19 GMT References: <8906132203.AA04470@bucse.bu.edu> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 12 | bash doesn't print the error status. Also note that bash doesn't | behave well under emacs, but I assume this is related to previous | reported bugs with determining interactive status. >You had the right idea. The problem (I believe) with your emulation is >that the status ($?) gets reset after the test. You could set up a >function to do the same thing as follows: Remember that there is a known bug with $?. Try applying the fix I posted earlier. Ray