]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/builtins/set1.0
fc39fade6270c360bedb03b948ac02efd3573107
[apple/shell_cmds.git] / sh / tests / builtins / set1.0
1 # $FreeBSD$
2
3 set +C
4 set +f
5 set -e
6
7 settings=$(set +o)
8 set -C
9 set -f
10 set +e
11 case $- in
12 *C*) ;;
13 *) echo missing C ;;
14 esac
15 case $- in
16 *f*) ;;
17 *) echo missing C ;;
18 esac
19 case $- in
20 *e*) echo bad e ;;
21 esac
22 eval "$settings"
23 case $- in
24 *C*) echo bad C ;;
25 esac
26 case $- in
27 *f*) echo bad f ;;
28 esac
29 case $- in
30 *e*) ;;
31 *) echo missing e ;;
32 esac