]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - bin/sh/tests/builtins/local4.0
Merge r262690 from head to stable/10:
[FreeBSD/stable/10.git] / bin / sh / tests / builtins / local4.0
1 # $FreeBSD$
2
3 f() {
4         local -- x
5         x=2
6         [ "$x" = 2 ]
7 }
8 x=1
9 f || exit 3
10 [ "$x" = 1 ] || exit 3
11 f || exit 3
12 [ "$x" = 1 ] || exit 3