From owner-cvs-all Sat Feb 7 08:40:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA00959 for cvs-all-outgoing; Sat, 7 Feb 1998 08:40:15 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA00954; Sat, 7 Feb 1998 08:40:11 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id DAA14095; Sun, 8 Feb 1998 03:39:15 +1100 Date: Sun, 8 Feb 1998 03:39:15 +1100 From: Bruce Evans Message-Id: <199802071639.DAA14095@godzilla.zeta.org.au> To: bde@zeta.org.au, cracauer@cons.org Subject: Re: cvs commit: src/bin/sh jobs.c Cc: cracauer@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe cvs-all" This example seems to handled correctly by at least my hacked sh, but not by bash: #!/bin/sh set -x trap '' 2 while : ; do cat; echo -n $?; done bash.1 says more clearly than sh.1 that the null trap causes the signal to be ignored by invoked commands, but only sh behaves as documented. Bruce