Results for builtin-set.test.sh

statusoshosh-cpp
pass 2322
ok 11
FAIL 01
total2424
caseoshosh-cppdescription
0pass pass can continue after unknown option
1pass pass set with both options and argv
2pass pass nounset with "$@"
3pass pass set -u -- clears argv
4pass pass set -u -- x y z
5pass pass set -u with undefined variable exits the interpreter
6pass pass set -u with undefined var in interactive shell does NOT exit the interpreter
7pass pass set -u error can break out of nested evals
8pass pass reset option with long flag
9pass pass reset option with short flag
10pass pass set -eu (flag parsing)
11pass pass set -o lists options
12pass FAIL 'set' and 'eval' round trip
details
13pass pass set - - and so forth
14pass pass set - leading single dash is ignored, turns off xtrace verbose (#2364)
15pass pass set - stops option processing like set --
16pass pass A single + is an ignored flag; not an argument
17ok ok set - + and + -
detailsdetails
18pass pass set -a exports variables
19pass pass set +a stops exporting
20pass pass set -o allexport (long form)
21pass pass variables set before set -a are not exported
22pass pass set -a exports local variables
23pass pass set -a exports declare variables
45 passed, 2 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp12 'set' and 'eval' round trip

[osh-cpp stdout] Expected '[ ]\nOK\nOK\nOK\nOK\nOK\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  varfile=$TMP/vars-$(basename $SH).txt
                                  ^
[ stdin ]:7: Invalid word while parsing command list
osh17 set - + and + -

stdout:
+

stderr:
osh-cpp17 set - + and + -

stdout:
+

stderr: