xref: /freebsd/bin/sh/tests/builtins/local4.0 (revision 95eb4b873b6a8b527c5bd78d7191975dfca38998)
1
2f() {
3	local -- x
4	x=2
5	[ "$x" = 2 ]
6}
7x=1
8f || exit 3
9[ "$x" = 1 ] || exit 3
10f || exit 3
11[ "$x" = 1 ] || exit 3
12