freebsd-skq/bin/sh/tests
bdrewery 5ae6ee36a9 sh: Fix the trap builtin to be POSIX-compliant for 'trap exit SIG' and 'trap n n...'.
The parser considered 'trap exit INT' to reset the default for both EXIT and
INT. This beahvior is not POSIX compliant. This was avoided if a value was
specified for 'exit', but then disallows exiting with the signal received. A
possible workaround is using ' exit'.

However POSIX does allow this type of behavior if the parameters are all
integers. Fix the handling for this and clarify its support in the manpage
since it is specifically allowed by POSIX.

Differential Revision:	https://reviews.freebsd.org/D2325
Reviewed by:	jilles
MFC after:	2 weeks
2015-04-18 23:49:57 +00:00
..
builtins sh: Fix the trap builtin to be POSIX-compliant for 'trap exit SIG' and 'trap n n...'. 2015-04-18 23:49:57 +00:00
errors sh: Don't hardcode relative paths in the tests stderr files. 2014-08-17 14:26:12 +00:00
execution sh: Make sure output suitable as shell input is also printable. 2014-12-14 16:26:19 +00:00
expansion sh: Add more tests for exotic IFS splitting. 2015-03-31 20:59:37 +00:00
parameters Treat IFS separators in "$*" as quoted. 2014-10-28 22:14:31 +00:00
parser sh: Allow backslash-newline continuation in more places: 2014-10-19 11:59:15 +00:00
set-e Convert bin/sh/tests to ATF 2014-08-13 04:14:50 +00:00
functional_test.sh sh: Don't hardcode relative paths in the tests stderr files. 2014-08-17 14:26:12 +00:00
Makefile Convert bin/sh/tests to ATF 2014-08-13 04:14:50 +00:00