spec test index / oilshell.org
status | osh | |
pass | 20 | |
FAIL | 1 | |
total | 21 | |
case | osh | description |
0 | pass | GetValue scope and shopt --unset dynamic_scope |
1 | pass | SetValue scope and shopt --unset dynamic_scope |
2 | pass | read scope |
3 | pass | printf -v x respects dynamic_scope |
4 | pass | printf -v a[i] respects dynamic_scope |
5 | pass | ${undef=a} and shopt --unset dynamic_scope |
6 | pass | declare -p respects it |
7 | pass | OshLanguageSetValue constructs |
8 | pass | shell assignments 'neutered' inside 'proc' |
9 | pass | setglobal still allows setting globals |
10 | FAIL | setref equivalent without pgen2 syntax, using open proc |
details | ||
11 | pass | unset inside proc uses local scope |
12 | pass | unset composes when you turn on dynamic scope |
13 | pass | Temp Bindings |
14 | pass | cd blocks don't introduce new scopes |
15 | pass | IFS=: myproc exports when it doesn't need to |
16 | pass | shvar usage |
17 | pass | shvar global |
18 | pass | shvar local |
19 | pass | shvar IFS |
20 | pass | shvarGet() |
20 passed, 0 OK, 0 not implemented, 0 BUG, 1 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 |