spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 20 | 20 | |
FAIL | 1 | 1 | |
total | 21 | 21 | |
case | osh | osh-cpp | description |
0 | pass | pass | GetValue scope and shopt --unset dynamic_scope |
1 | pass | pass | SetValue scope and shopt --unset dynamic_scope |
2 | pass | pass | read scope |
3 | pass | pass | printf -v x respects dynamic_scope |
4 | pass | pass | printf -v a[i] respects dynamic_scope |
5 | pass | pass | ${undef=a} and shopt --unset dynamic_scope |
6 | pass | pass | declare -p respects it |
7 | pass | pass | OshLanguageSetValue constructs |
8 | pass | pass | shell assignments 'neutered' inside 'proc' |
9 | pass | pass | setglobal still allows setting globals |
10 | FAIL | FAIL | setref equivalent without pgen2 syntax, using open proc |
details | details | ||
11 | pass | pass | unset inside proc uses local scope |
12 | pass | pass | unset composes when you turn on dynamic scope |
13 | pass | pass | Temp Bindings |
14 | pass | pass | cd blocks don't introduce new scopes |
15 | pass | pass | IFS=: myproc exports when it doesn't need to |
16 | pass | pass | shvar usage |
17 | pass | pass | shvar global |
18 | pass | pass | shvar local |
19 | pass | pass | shvar IFS |
20 | pass | pass | shvarGet() |
40 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 10 setref equivalent without pgen2 syntax, using open proc [osh stdout] Expected 'foo-SS\nfoo-TT\n', got 'abc\ndef\n' stdout: abc defstderr: setref s = "foo-$val" ^~~~~~ [ stdin ]:9: 'setref' not found setref s = "foo-$val" ^~~~~~ [ stdin ]:9: 'setref' not found |
osh-cpp | 10 setref equivalent without pgen2 syntax, using open proc [osh-cpp stdout] Expected 'foo-SS\nfoo-TT\n', got 'abc\ndef\n' stdout: abc defstderr: setref s = "foo-$val" ^~~~~~ [ stdin ]:9: 'setref' not found setref s = "foo-$val" ^~~~~~ [ stdin ]:9: 'setref' not found |