summaryrefslogtreecommitdiffstats
path: root/tools/regression/bin/sh/execution/subshell2.0
blob: 32164495c9ca6c233043a972c988ecbe0ed86e7e (plain)
1
2
3
4
5
6
7
8
9
10
# $FreeBSD$

f() {
	x=2
}
(
	x=1
	f
	[ "$x" = 2 ]
)
OpenPOWER on IntegriCloud