spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 13 | 13 | 12 | |
ok | 2 | 2 | 2 | |
FAIL | 1 | 1 | 2 | |
total | 16 | 16 | 16 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | unset PS4 |
1 | FAIL | FAIL | FAIL | set -o verbose prints unevaluated code |
details | details | details | ||
2 | pass | pass | pass | xtrace with unprintable chars |
3 | pass | pass | FAIL | xtrace with unicode chars |
details | ||||
4 | pass | pass | pass | xtrace with tabs |
5 | pass | pass | pass | xtrace with whitespace, quotes, and backslash |
6 | pass | pass | pass | xtrace with newlines |
7 | pass | pass | pass | xtrace written before command executes |
8 | pass | pass | pass | Assignments and assign builtins |
9 | pass | pass | pass | [[ ]] |
10 | ok | ok | ok | PS4 is scoped |
details | details | details | ||
11 | ok | ok | ok | xtrace with variables in PS4 |
details | details | details | ||
12 | pass | pass | pass | PS4 with unterminated ${ |
13 | pass | pass | pass | PS4 with unterminated $( |
14 | pass | pass | pass | PS4 with runtime error |
15 | pass | pass | pass | Reading $? in PS4 |
38 passed, 6 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 1 set -o verbose prints unevaluated code [osh stderr] Expected 'x=foo\ny=bar\necho $x\necho $(echo $y)\n', got 'Warning: set -o verbose not implemented\n' stdout: foo barstderr: Warning: set -o verbose not implemented |
osh_.py | 1 set -o verbose prints unevaluated code [osh_.py stderr] Expected 'x=foo\ny=bar\necho $x\necho $(echo $y)\n', got 'Warning: set -o verbose not implemented\n' stdout: foo barstderr: Warning: set -o verbose not implemented |
osh_.cc | 1 set -o verbose prints unevaluated code [osh_.cc stderr] Expected 'x=foo\ny=bar\necho $x\necho $(echo $y)\n', got 'Warning: set -o verbose not implemented\n' stdout: foo barstderr: Warning: set -o verbose not implemented |
osh_.cc | 3 xtrace with unicode chars [osh_.cc stderr] Expected "+ echo '[\xce\xbc]' '[\xce\xbc]'\n", got "+ echo $'[\xce\xbc]' $'[\xce\xbc]'\n" stdout: [μ] [μ]stderr: + echo $'[μ]' $'[μ]' |
osh | 10 PS4 is scoped stdout: one func twostderr: + echo one + f + local PS4='- ' - echo func + echo two |
osh_.py | 10 PS4 is scoped stdout: one func twostderr: + echo one + f + local PS4='- ' - echo func + echo two |
osh_.cc | 10 PS4 is scoped stdout: one func twostderr: + echo one + f + local PS4='- ' - echo func + echo two |
osh | 11 xtrace with variables in PS4 stdout: one twostderr: +1:x=1 +1:echo one +2:x=2 +2:echo two |
osh_.py | 11 xtrace with variables in PS4 stdout: one twostderr: +1:x=1 +1:echo one +2:x=2 +2:echo two |
osh_.cc | 11 xtrace with variables in PS4 stdout: one twostderr: +1:x=1 +1:echo one +2:x=2 +2:echo two |