spec test index / oilshell.org
72 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
osh | 9 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 pipefailstderr: shopt -o -p | grep -- ' -o ' | grep -v hashall ^~~~~ [ stdin ]:2: errexit PID 42786: command.Simple failed with status 1 shopt -o -p | grep -- ' -o ' | grep -v hashall ^~~~~ [ stdin ]:2: errexit PID 42783: command.Pipeline failed with status 1 |
osh_ALT | 9 shopt -s ysh:upgrade [osh_ALT 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_ALT status] Expected 0, got 1 stdout: set -o errexit set -o nounset set -o pipefailstderr: shopt -o -p | grep -- ' -o ' | grep -v hashall ^~~~~ [ stdin ]:2: errexit PID 42790: command.Simple failed with status 1 shopt -o -p | grep -- ' -o ' | grep -v hashall ^~~~~ [ stdin ]:2: errexit PID 42789: command.Pipeline failed with status 1 |
osh | 30 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_evalstderr: shopt -p | egrep 'dashglob|simple_word_eval' ^~~~~ [ stdin ]:2: errexit PID 42922: command.Simple failed with status 1 shopt -p | egrep 'dashglob|simple_word_eval' ^~~~~ [ stdin ]:2: errexit PID 42915: command.Pipeline failed with status 1 |
osh_ALT | 30 shopt -s oil:upgrade turns some options on and others off [osh_ALT 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_ALT 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_evalstderr: shopt -p | egrep 'dashglob|simple_word_eval' ^~~~~ [ stdin ]:2: errexit PID 42929: command.Simple failed with status 1 shopt -p | egrep 'dashglob|simple_word_eval' ^~~~~ [ stdin ]:2: errexit PID 42924: command.Pipeline failed with status 1 |