summaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/execution/subshell2.0
blob: 2d8773005f81f8b3760f96f3f78d95efc189478b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# $FreeBSD: head/bin/sh/tests/execution/subshell2.0 245383 2013-01-13 19:39:13Z jilles $

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