Results for oil-options.test.sh

statusosh
pass 33
FAIL 2
total35
caseoshdescription
0pass simple_word_eval doesn't split, glob, or elide empty
1pass simple_word_eval and strict_array conflict over globs
2pass parse_at
3pass parse_at can't be used outside top level
4pass sourcing a file that sets parse_at
5pass parse_at can be specified through sh -O
6pass @a splices into $0
7pass ARGV is alias for "$@"
8pass shopt -s strict:all
9pass shopt -s oil:basic
10pass osh -O oil:basic
11pass strict:all includes inherit_errexit
12pass parse_set
13pass parse_brace: bad block to assignment builtin
14pass parse_brace: bad block to external program
15pass parse_brace: cd { } in pipeline
16pass parse_brace: if accepts blocks
17pass parse_brace: brace group in if condition
18pass parse_brace: while/until
19pass parse_brace: for-in loop
20pass parse_brace case
21pass parse_paren: if statement
22pass parse_paren: while statement
23pass while subshell without parse_paren
24pass parse_paren: for loop
25pass parse_equals: allows bare assignment
26pass parse_equals: disallows ENV=val mycommand
27pass parse_equals: disallows var=val
28FAIL parse_rawc: C strings in @() array literals
details
29FAIL parse_paren allows f(x)
details
30pass nullglob is on with oil:basic
31pass nullglob is on with oil:all
32pass shopt -s strict_echo
33pass shopt -s dashglob
34pass shopt -s oil:basic turns some options on and others off
33 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh28 parse_rawc: C strings in @() array literals

[osh status] Expected 0, got 2

stdout:
stderr: 
  echo @lines
  ^~~~
[ stdin ]:3: 'echo' takes at most one arg when strict_echo is on (hint: add quotes)
  echo @lines
  ^~~~
[ stdin ]:3: fatal: Exiting with status 2 (command in PID 14676)
osh29 parse_paren allows f(x)

[osh stdout] Expected 'foo 42\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  func f(x) {
        ^
[ stdin ]:2: Unexpected word while parsing command line