From 02edd492b4f7d30464206af085b2900953490a01 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 8 Jan 2011 23:00:38 +0000 Subject: [PATCH] sh: Add simple test for 'exit' without parameters. --- tools/regression/bin/sh/builtins/exit2.8 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tools/regression/bin/sh/builtins/exit2.8 diff --git a/tools/regression/bin/sh/builtins/exit2.8 b/tools/regression/bin/sh/builtins/exit2.8 new file mode 100644 index 000000000000..124c32e01a3c --- /dev/null +++ b/tools/regression/bin/sh/builtins/exit2.8 @@ -0,0 +1,7 @@ +# $FreeBSD$ + +# exit without arguments is the same as exit $? outside a trap. + +trap 'true; true' 0 +(exit 8) +exit