summary refs log tree commit diff
path: root/bin/cash/tests/builtins/local6.0
blob: 88283edb0b027fdedc237b909710373100dc21a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/local6.0 294582 2016-01-22 18:10:36Z jilles $

f() {
	local x
	readonly x=2
}
x=3
f
x=4
[ "$x" = 4 ]