1 # $FreeBSD: head/tools/regression/bin/sh/builtins/exec2.0 213738 2010-10-12 18:20:38Z obrien $
5 echo "Error at line $1" >&2
13 [ $? = 0 ] || failure $LINENO
15 exec -- ${SH} -c 'exit 42'
18 [ $? = 42 ] || failure $LINENO
20 exec -- /var/empty/nosuch
23 [ $? = 127 ] || failure $LINENO