blob: 7d35e6e0887b519b9088e54b8886d114217fda5f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
# $FreeBSD: head/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
|