summary refs log tree commit diff
path: root/bin/1sh/tests/execution/subshell2.0
blob: e938ff82d026123b6aa354cac7d8822a4419aab8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# $FreeBSD: releng/12.1/bin/sh/tests/execution/subshell2.0 245383 2013-01-13 19:39:13Z jilles $

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