]> git.saurik.com Git - apple/shell_cmds.git/blame_incremental - sh/tests/builtins/trap12.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / builtins / trap12.0
... / ...
CommitLineData
1# $FreeBSD: head/bin/sh/tests/builtins/trap12.0 247720 2013-03-03 17:33:59Z jilles $
2
3f() {
4 trap 'return 42' USR1
5 kill -USR1 $$
6 return 3
7}
8f
9r=$?
10[ "$r" = 42 ]