xref: /freebsd/bin/sh/tests/builtins/local2.0 (revision 525fe93dc7487a1e63a90f6a2b956abc601963c1)
1
2f() {
3	local -
4	set -a
5	case $- in
6	*a*) : ;;
7	*) echo In-function \$- bad
8	esac
9}
10case $- in
11*a*) echo Initial \$- bad
12esac
13f
14case $- in
15*a*) echo Final \$- bad
16esac
17