summary refs log tree commit diff
path: root/bin/cash/tests/builtins/return8.0
blob: 4e3b667ac0f625f975178e26d41b6496842a10a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/return8.0 255215 2013-09-04 22:10:16Z jilles $

if [ "$1" = nested ]; then
	return 17
fi

f() {
	set -- nested
	. "$0"
	return $(($? ^ 1))
}
f
exit $(($? ^ 16))