Author: jilles Date: Sat Jan 1 15:25:15 2011 New Revision: 216871 URL: http://svn.freebsd.org/changeset/base/216871
Log: sh: Test that exit $? replaces the original exit status in an EXIT trap. Added: head/tools/regression/bin/sh/builtins/exit1.0 (contents, props changed) Added: head/tools/regression/bin/sh/builtins/exit1.0 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/bin/sh/builtins/exit1.0 Sat Jan 1 15:25:15 2011 (r216871) @@ -0,0 +1,6 @@ +# $FreeBSD$ + +# exit with an argument should overwrite the exit status in an EXIT trap. + +trap 'true; exit $?' 0 +false _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"