summary refs log tree commit diff
path: root/bin/cash/tests/builtins/local2.0
blob: 185cc39f38200cf18dc81ea198b95d340b770f40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/local2.0 251797 2013-06-15 22:22:03Z jilles $

f() {
	local -
	set -a
	case $- in
	*a*) : ;;
	*) echo In-function \$- bad
	esac
}
case $- in
*a*) echo Initial \$- bad
esac
f
case $- in
*a*) echo Final \$- bad
esac