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