projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge remote-tracking branch 'remotes/crater/vendor/BYACC'
[dragonfly.git]
/
tools
/
regression
/
bin
/
sh
/
builtins
/
local1.0
1
# $FreeBSD: head/tools/regression/bin/sh/builtins/local1.0 238469 2012-07-15 10:22:13Z jilles $
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