From owner-cvs-src-old@FreeBSD.ORG Sun Jan 16 13:57:59 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5062A1065679 for ; Sun, 16 Jan 2011 13:57:59 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3DF178FC08 for ; Sun, 16 Jan 2011 13:57:59 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p0GDvxJP082967 for ; Sun, 16 Jan 2011 13:57:59 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p0GDvxou082966 for cvs-src-old@freebsd.org; Sun, 16 Jan 2011 13:57:59 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201101161357.p0GDvxou082966@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Sun, 16 Jan 2011 13:56:41 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh trap.c src/tools/regression/bin/sh/builtins trap6.0 X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jan 2011 13:57:59 -0000 jilles 2011-01-16 13:56:41 UTC FreeBSD src repository Modified files: bin/sh trap.c Added files: tools/regression/bin/sh/builtins trap6.0 Log: SVN rev 217472 on 2011-01-16 13:56:41Z by jilles sh: If exit is used without args from a trap action, exit on the signal. This is useful so that it is easier to exit on a signal than to reset the trap to default and resend the signal. It matches ksh93. POSIX says that 'exit' without args from a trap action uses the exit status from the last command before the trap, which is different from 'exit $?' and matches this if the previous command is assumed to have exited on the signal. If the signal is SIGSTOP, SIGTSTP, SIGTTIN or SIGTTOU, or if the default action for the signal is to ignore it, a normal _exit(2) is done with exit status 128+signal_number. Revision Changes Path 1.43 +22 -3 src/bin/sh/trap.c 1.1 +9 -0 src/tools/regression/bin/sh/builtins/trap6.0 (new)