xref: /freebsd/bin/sh/tests/builtins/local2.0 (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
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