Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Feb 1998 03:39:15 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, cracauer@cons.org
Cc:        cracauer@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-committers@FreeBSD.ORG
Subject:   Re: cvs commit: src/bin/sh jobs.c
Message-ID:  <199802071639.DAA14095@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802071639.DAA14095>