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

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