blob: b28837ec005fc45e4b4e0fd085e9811dee22a4fa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# $FreeBSD$
# A commonly used but non-POSIX builtin.
f() {
local x
x=2
[ "$x" = 2 ]
}
x=1
f || exit 3
[ "$x" = 1 ] || exit 3
f || exit 3
[ "$x" = 1 ] || exit 3
|