Results for oil-options.test.sh

statusoshosh-cpp
pass 3733
FAIL 26
total3939
caseoshosh-cppdescription
0pass pass simple_word_eval doesn't split, glob, or elide empty
1pass pass simple_word_eval and strict_array conflict over globs
2pass pass simple_word_eval and glob
3pass pass parse_at
4pass pass parse_at can't be used outside top level
5pass pass sourcing a file that sets parse_at
6pass pass parse_at can be specified through sh -O
7pass pass @a splices into $0
8pass pass ARGV is alias for "$@"
9pass pass shopt -s strict:all
10pass pass shopt -s oil:upgrade
11pass FAIL osh -O oil:upgrade
details
12pass pass osh -O errexit: use -O everywhere, even for Bourne options
13pass pass osh -O invalid
14pass pass osh -o new_option is also accepted
15pass pass oil:upgrade includes inherit_errexit
16pass pass parse_brace: bad block to assignment builtin
17pass pass parse_brace: bad block to external program
18pass pass parse_brace: cd { } in pipeline
19pass pass parse_brace: if accepts blocks
20pass pass parse_brace: brace group in if condition
21pass pass parse_brace: while/until
22pass pass parse_brace: for-in loop
23pass FAIL parse_brace case
details
24pass FAIL parse_paren: if statement
details
25pass FAIL parse_paren: while statement
details
26pass pass while subshell without parse_paren
27pass pass nullglob is on with oil:upgrade
28pass pass nullglob is on with oil:all
29pass pass shopt -s simple_echo
30pass pass shopt -s dashglob
31pass pass shopt -s oil:upgrade turns some options on and others off
32pass pass oil:upgrade disables aliases
33pass pass sigpipe_status_ok
34pass pass printf | head regression (sigpipe_status_ok)
35pass pass redefine_proc for shell functions
36pass pass redefine_proc for procs
37FAIL FAIL redefine_proc is on in interactive shell
detailsdetails
38FAIL FAIL redefine_module is on in interactive shell
detailsdetails
70 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh-cpp11 osh -O oil:upgrade

[osh-cpp stdout] Expected 'one\ntwo\nthree\n', got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
  var x = %(one two three); write @x
                                  ^~
[ -c flag ]:1: fatal: Can't splice 'x'
osh-cpp23 parse_brace case

[osh-cpp stdout] Expected 'python\nshell\npython\nshell\n', got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
  for name in "${files[@]}" ; do
                 ^~~~~
[ stdin ]:4: fatal: Undefined array 'files'
osh-cpp24 parse_paren: if statement

[osh-cpp stdout] Expected 'less\nless\nother\n', got 'other\n'

stdout:
other
stderr:
osh-cpp25 parse_paren: while statement

[osh-cpp stdout] Expected '1\n2\ndone ksh\n1\n2\ndone sh\n1\n2\ndone oil\n', got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
  while (( x < 3 )) {
           ^
[ stdin ]:4: fatal: Undefined variable 'x'
osh37 redefine_proc is on in interactive shell

[osh stderr] Expected 'hi\n', got 'hi\n[??? no location ???] osh: Failed to move process group 6582 to foreground: No such process\n'

stdout:
common
redefinition
stderr:
hi
[??? no location ???] osh: Failed to move process group 6582 to foreground: No such process
osh-cpp37 redefine_proc is on in interactive shell

[osh-cpp stderr] Expected 'hi\n', got 'hi\n[??? no location ???] osh: Failed to move process group 8919 to foreground: No such process\n'

stdout:
common
redefinition
stderr:
hi
[??? no location ???] osh: Failed to move process group 8919 to foreground: No such process
osh38 redefine_module is on in interactive shell

[osh stdout] Expected 'common\ncommon\nstatus=0\n2 stderr.txt\n', got 'common\ncommon\nstatus=0\n3 stderr.txt\n'

stdout:
common
common
status=0
3 stderr.txt
stderr:
osh-cpp38 redefine_module is on in interactive shell

[osh-cpp stdout] Expected 'common\ncommon\nstatus=0\n2 stderr.txt\n', got 'common\ncommon\nstatus=0\n3 stderr.txt\n'

stdout:
common
common
status=0
3 stderr.txt
stderr: