OILS / spec / builtin-shopt-bash.test.sh View on Github | oilshell.org

24 lines, 6 significant
1## compare_shells: bash
2## oils_failures_allowed: 0
3
4# builtin-shopt-bash.test.sh
5
6#### shopt
7shopt | grep inherit_errexit | tr -d ' '
8## stdout-json: "inherit_errexit\toff\n"
9
10#### shopt -p
11shopt -p | grep inherit_errexit
12## STDOUT:
13shopt -u inherit_errexit
14## END
15
16#### shopt -o
17shopt -o | grep errexit | tr -d ' '
18## stdout-json: "errexit\toff\n"
19
20#### shopt -p -o
21shopt -p -o | grep errexit
22## STDOUT:
23set +o errexit
24## END