Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!mips!pacbell.com!tandem!zorch!vsi1!daver!bungi.com!news From: sverre@lev.Seri.GOV (Sverre Froyen) Newsgroups: comp.sys.nsc.32k Subject: /bin/sh and trap Message-ID: <9103081447.AA13405@lev.seri.gov> Date: 8 Mar 91 14:47:51 GMT Sender: news@daver.bungi.com Lines: 21 Approved: news@daver.bungi.com It appears that the trap command in /bin/sh does not work. Try to run the following script: #!/bin/sh trap ' echo "status=$status" exit $status ' 0 trap exit 1 2 3 13 15 status=2 With /bin/sh it produces no output and 0 exit status. With bash and on several other computers it echos the status= line and sets the output status to 2. Has anyone a fix for this? This is my final unresolved problem in getting a fully working rcs. Sverre -- Sverre Froyen sverre@seri.gov, sunpeaks!seri!sverre