Results for ysh-options.test.sh

statusosh
pass 36
FAIL 2
total38
caseoshdescription
0pass simple_word_eval doesn't split, glob, or elide empty
1pass simple_word_eval and strict_array conflict over globs
2pass simple_word_eval and glob
3pass parse_at
4FAIL DISABLED: parse_at can't be used outside top level
details
5pass sourcing a file that sets parse_at
6pass parse_at can be specified through sh -O
7pass @a splices into $0
8pass shopt -s strict:all
9FAIL shopt -s ysh:upgrade
details
10pass osh -O ysh:upgrade
11pass osh -O errexit: use -O everywhere, even for Bourne options
12pass osh -O invalid
13pass osh -o new_option is also accepted
14pass oil:upgrade includes inherit_errexit
15pass parse_brace: bad block to assignment builtin
16pass parse_brace: bad block to external program
17pass parse_brace: cd { } in pipeline
18pass parse_brace: if accepts blocks
19pass parse_brace: brace group in if condition
20pass parse_brace: while/until
21pass parse_brace: for-in loop
22pass parse_brace case
23pass parse_paren: if statement
24pass parse_paren: while statement
25pass while subshell without parse_paren
26pass nullglob is on with oil:upgrade
27pass nullglob is on with oil:all
28pass shopt -s simple_echo
29pass shopt -s no_dash_glob
30pass sigpipe_status_ok
31pass printf | head regression (sigpipe_status_ok)
32pass redefine_proc is on in interactive shell
33pass redefine_source is on in interactive shell
34pass parse options in sourced file (bug #1628)
35pass expand_aliases turned off only in ysh:all
36pass [[ isn't allowed in ysh
37pass ysh:upgrade allows assoc arrays, with parse_ysh_string
36 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

osh4 DISABLED: parse_at can't be used outside top level

[osh stdout] Expected u'' Got 'status=0\nshould not get here\n'
[osh status] Expected 1 Got 0

stdout:
status=0
should not get here
stderr:
osh9 shopt -s ysh:upgrade

[osh stdout] Expected 'set -o errexit\nset -o nounset\nset -o pipefail\nshopt -s command_sub_errexit\nshopt -s env_obj\nshopt -s errexit\nshopt -s for_loop_frames\nshopt -s inherit_errexit\nshopt -s init_ysh_globals\nshopt -s no_dash_glob\nshopt -s no_xtrace_osh\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_ysh_expr_sub\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 -s verbose_warn\nshopt -s xtrace_rich\n' Got 'set -o errexit\nset -o nounset\nset -o pipefail\nshopt -s command_sub_errexit\nshopt -s env_obj\nshopt -s errexit\nshopt -s for_loop_frames\nshopt -s inherit_errexit\nshopt -s init_ysh_globals\nshopt -s no_dash_glob\nshopt -s no_xtrace_osh\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_expr_sub\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 -s verbose_warn\nshopt -s xtrace_rich\n'

stdout:
set -o errexit
set -o nounset
set -o pipefail
shopt -s command_sub_errexit
shopt -s env_obj
shopt -s errexit
shopt -s for_loop_frames
shopt -s inherit_errexit
shopt -s init_ysh_globals
shopt -s no_dash_glob
shopt -s no_xtrace_osh
shopt -s nounset
shopt -s nullglob
shopt -s parse_at
shopt -s parse_brace
shopt -s parse_bracket
shopt -s parse_equals
shopt -s parse_func
shopt -s parse_paren
shopt -s parse_proc
shopt -s parse_triple_quote
shopt -s parse_ysh_expr_sub
shopt -s parse_ysh_string
shopt -s pipefail
shopt -s process_sub_fail
shopt -s sigpipe_status_ok
shopt -s simple_word_eval
shopt -s verbose_errexit
shopt -s verbose_warn
shopt -s xtrace_rich
stderr: