local2.0 revision 251797
1251797Sjilles# $FreeBSD: head/tools/regression/bin/sh/builtins/local2.0 251797 2013-06-15 22:22:03Z jilles $ 2251797Sjilles 3251797Sjillesf() { 4251797Sjilles local - 5251797Sjilles set -a 6251797Sjilles case $- in 7251797Sjilles *a*) : ;; 8251797Sjilles *) echo In-function \$- bad 9251797Sjilles esac 10251797Sjilles} 11251797Sjillescase $- in 12251797Sjilles*a*) echo Initial \$- bad 13251797Sjillesesac 14251797Sjillesf 15251797Sjillescase $- in 16251797Sjilles*a*) echo Final \$- bad 17251797Sjillesesac 18