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