Results for ysh-options.test.sh

statusoshosh-cpp
pass 3838
FAIL 22
total4040
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 shopt -s strict:all
9pass pass shopt -s ysh:upgrade
10pass pass osh -O oil:upgrade
11pass pass osh -O errexit: use -O everywhere, even for Bourne options
12pass pass osh -O invalid
13pass pass osh -o new_option is also accepted
14pass pass oil:upgrade includes inherit_errexit
15pass pass parse_brace: bad block to assignment builtin
16pass pass parse_brace: bad block to external program
17pass pass parse_brace: cd { } in pipeline
18pass pass parse_brace: if accepts blocks
19pass pass parse_brace: brace group in if condition
20pass pass parse_brace: while/until
21pass pass parse_brace: for-in loop
22pass pass parse_brace case
23pass pass parse_paren: if statement
24pass pass parse_paren: while statement
25pass pass while subshell without parse_paren
26pass pass nullglob is on with oil:upgrade
27pass pass nullglob is on with oil:all
28pass pass shopt -s simple_echo
29pass pass shopt -s dashglob
30pass pass shopt -s oil:upgrade turns some options on and others off
31pass pass sigpipe_status_ok
32pass pass printf | head regression (sigpipe_status_ok)
33pass pass Shell functions can't be refined with YSH (redefine_proc_func off)
34pass pass redefine_proc for procs
35FAIL FAIL redefine_proc is on in interactive shell
detailsdetails
36FAIL FAIL redefine_module is on in interactive shell
detailsdetails
37pass pass parse options in sourced file (bug #1628)
38pass pass expand_aliases turned off only in ysh:all
39pass pass [[ isn't allowed in ysh
76 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

osh35 redefine_proc is on in interactive shell

[osh stdout] Expected 'common\nredefinition\n', got ''
[osh stderr] Expected 'hi\n', got " module 'common' || return 0\n ^~~~~~\n/home/uke/oil/spec/testdata/module/common.ysh:2: 'module' not found (OILS-ERR-100)\n module 'redefinition' || return 0\n ^~~~~~\n/home/uke/oil/spec/testdata/module/redefinition.ysh:1: 'module' not found (OILS-ERR-100)\n log hi\n ^~~\n[ -c flag ]:4: 'log' not found (OILS-ERR-100)\n[ -c flag ]:4: errexit PID 30725: command.Simple failed with status 127\n"
[osh status] Expected 0, got 127

stdout:
stderr: 
  module 'common' || return 0
  ^~~~~~
/home/uke/oil/spec/testdata/module/common.ysh:2: 'module' not found (OILS-ERR-100)
  module 'redefinition' || return 0
  ^~~~~~
/home/uke/oil/spec/testdata/module/redefinition.ysh:1: 'module' not found (OILS-ERR-100)
  log hi
  ^~~
[ -c flag ]:4: 'log' not found (OILS-ERR-100)
[ -c flag ]:4: errexit PID 30725: command.Simple failed with status 127
osh-cpp35 redefine_proc is on in interactive shell

[osh-cpp stdout] Expected 'common\nredefinition\n', got ''
[osh-cpp stderr] Expected 'hi\n', got " module 'common' || return 0\n ^~~~~~\n/home/uke/oil/test/../spec/testdata/module/common.ysh:2: 'module' not found (OILS-ERR-100)\n module 'redefinition' || return 0\n ^~~~~~\n/home/uke/oil/test/../spec/testdata/module/redefinition.ysh:1: 'module' not found (OILS-ERR-100)\n log hi\n ^~~\n[ -c flag ]:4: 'log' not found (OILS-ERR-100)\n[ -c flag ]:4: errexit PID 30742: command.Simple failed with status 127\n"
[osh-cpp status] Expected 0, got 127

stdout:
stderr: 
  module 'common' || return 0
  ^~~~~~
/home/uke/oil/test/../spec/testdata/module/common.ysh:2: 'module' not found (OILS-ERR-100)
  module 'redefinition' || return 0
  ^~~~~~
/home/uke/oil/test/../spec/testdata/module/redefinition.ysh:1: 'module' not found (OILS-ERR-100)
  log hi
  ^~~
[ -c flag ]:4: 'log' not found (OILS-ERR-100)
[ -c flag ]:4: errexit PID 30742: command.Simple failed with status 127
osh36 redefine_module is on in interactive shell

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

stdout:
status=127
10 stderr.txt
stderr:
osh-cpp36 redefine_module is on in interactive shell

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

stdout:
status=127
10 stderr.txt
stderr: