diff options
Diffstat (limited to 'tools/regression/bin/sh/builtins/local2.0')
-rw-r--r-- | tools/regression/bin/sh/builtins/local2.0 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/local2.0 b/tools/regression/bin/sh/builtins/local2.0 new file mode 100644 index 0000000..cc8c10f --- /dev/null +++ b/tools/regression/bin/sh/builtins/local2.0 @@ -0,0 +1,17 @@ +# $FreeBSD$ + +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 |