freebsd-nq/bin/sh/tests/builtins/local4.0

13 lines
126 B
Plaintext
Raw Normal View History

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