summary refs log tree commit diff
path: root/bin/cash/tests/builtins/local4.0
blob: 1b05dfeddfaac8da1c29440155433d036cedc01f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/local4.0 254339 2013-08-14 21:59:48Z jilles $

f() {
	local -- x
	x=2
	[ "$x" = 2 ]
}
x=1
f || exit 3
[ "$x" = 1 ] || exit 3
f || exit 3
[ "$x" = 1 ] || exit 3