Results for ysh-options.test.sh

statusoshosh-cpp
pass 3636
FAIL 22
total3838
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
9FAIL FAIL shopt -s ysh:upgrade
detailsdetails
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
30FAIL FAIL shopt -s oil:upgrade turns some options on and others off
detailsdetails
31pass pass sigpipe_status_ok
32pass pass printf | head regression (sigpipe_status_ok)
33pass pass redefine_proc is on in interactive shell
34pass pass redefine_source is on in interactive shell
35pass pass parse options in sourced file (bug #1628)
36pass pass expand_aliases turned off only in ysh:all
37pass pass [[ isn't allowed in ysh
72 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

osh9 shopt -s ysh:upgrade

[osh stdout] Expected 'set -o errexit\nset -o nounset\nset -o pipefail\nshopt -s command_sub_errexit\nshopt -u dashglob\nshopt -s errexit\nshopt -s inherit_errexit\nshopt -s nounset\nshopt -s nullglob\nshopt -s parse_at\nshopt -s parse_brace\nshopt -s parse_bracket\nshopt -s parse_equals\nshopt -s parse_func\nshopt -s parse_paren\nshopt -s parse_proc\nshopt -s parse_triple_quote\nshopt -s parse_ysh_string\nshopt -s pipefail\nshopt -s process_sub_fail\nshopt -s sigpipe_status_ok\nshopt -s simple_word_eval\nshopt -s verbose_errexit\nshopt -u xtrace_details\nshopt -s xtrace_rich\n' Got 'set -o errexit\nset -o nounset\nset -o pipefail\n'
[osh status] Expected 0, got 1

stdout:
set -o errexit
set -o nounset
set -o pipefail
stderr:
  shopt -o -p | grep -- ' -o ' | grep -v hashall
  ^~~~~
[ stdin ]:2: errexit PID 32741: command.Simple failed with status 1
  shopt -o -p | grep -- ' -o ' | grep -v hashall
  ^~~~~
[ stdin ]:2: errexit PID 32736: command.Pipeline failed with status 1
osh-cpp9 shopt -s ysh:upgrade

[osh-cpp stdout] Expected 'set -o errexit\nset -o nounset\nset -o pipefail\nshopt -s command_sub_errexit\nshopt -u dashglob\nshopt -s errexit\nshopt -s inherit_errexit\nshopt -s nounset\nshopt -s nullglob\nshopt -s parse_at\nshopt -s parse_brace\nshopt -s parse_bracket\nshopt -s parse_equals\nshopt -s parse_func\nshopt -s parse_paren\nshopt -s parse_proc\nshopt -s parse_triple_quote\nshopt -s parse_ysh_string\nshopt -s pipefail\nshopt -s process_sub_fail\nshopt -s sigpipe_status_ok\nshopt -s simple_word_eval\nshopt -s verbose_errexit\nshopt -u xtrace_details\nshopt -s xtrace_rich\n' Got 'set -o errexit\nset -o nounset\nset -o pipefail\n'
[osh-cpp status] Expected 0, got 1

stdout:
set -o errexit
set -o nounset
set -o pipefail
stderr:
  shopt -o -p | grep -- ' -o ' | grep -v hashall
  ^~~~~
[ stdin ]:2: errexit PID 32753: command.Simple failed with status 1
  shopt -o -p | grep -- ' -o ' | grep -v hashall
  ^~~~~
[ stdin ]:2: errexit PID 32745: command.Pipeline failed with status 1
osh30 shopt -s oil:upgrade turns some options on and others off

[osh stdout] Expected 'shopt -s dashglob\nshopt -u simple_word_eval\n---\nshopt -s dashglob\nshopt -s simple_word_eval\n---\nshopt -u dashglob\nshopt -s simple_word_eval\n---\nshopt -s dashglob\nshopt -u simple_word_eval\n' Got 'shopt -s dashglob\nshopt -u simple_word_eval\n---\nshopt -s dashglob\nshopt -s simple_word_eval\n---\nshopt -u dashglob\nshopt -s simple_word_eval\n'
[osh status] Expected 0, got 1

stdout:
shopt -s dashglob
shopt -u simple_word_eval
---
shopt -s dashglob
shopt -s simple_word_eval
---
shopt -u dashglob
shopt -s simple_word_eval
stderr:
    shopt -p | egrep 'dashglob|simple_word_eval'
    ^~~~~
[ stdin ]:2: errexit PID 33338: command.Simple failed with status 1
    shopt -p | egrep 'dashglob|simple_word_eval'
    ^~~~~
[ stdin ]:2: errexit PID 33323: command.Pipeline failed with status 1
osh-cpp30 shopt -s oil:upgrade turns some options on and others off

[osh-cpp stdout] Expected 'shopt -s dashglob\nshopt -u simple_word_eval\n---\nshopt -s dashglob\nshopt -s simple_word_eval\n---\nshopt -u dashglob\nshopt -s simple_word_eval\n---\nshopt -s dashglob\nshopt -u simple_word_eval\n' Got 'shopt -s dashglob\nshopt -u simple_word_eval\n---\nshopt -s dashglob\nshopt -s simple_word_eval\n---\nshopt -u dashglob\nshopt -s simple_word_eval\n'
[osh-cpp status] Expected 0, got 1

stdout:
shopt -s dashglob
shopt -u simple_word_eval
---
shopt -s dashglob
shopt -s simple_word_eval
---
shopt -u dashglob
shopt -s simple_word_eval
stderr:
    shopt -p | egrep 'dashglob|simple_word_eval'
    ^~~~~
[ stdin ]:2: errexit PID 33356: command.Simple failed with status 1
    shopt -p | egrep 'dashglob|simple_word_eval'
    ^~~~~
[ stdin ]:2: errexit PID 33346: command.Pipeline failed with status 1