ysh-scope () { run-file ysh-scope "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" }
spec test index / oilshell.org
status | osh | |
pass | 24 | |
total | 24 | |
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 | pass | setglobal d[key] inside proc should mutate global (bug #1841) |
11 | pass | setglobal a[i] inside proc |
12 | pass | setglobal a[i] += and d.key += |
13 | pass | setglobal a[i] - i can be local or global |
14 | pass | unset inside proc uses local scope |
15 | pass | unset composes when you turn on dynamic scope |
16 | pass | Temp Bindings |
17 | pass | cd blocks don't introduce new scopes |
18 | pass | IFS=: myproc exports when it doesn't need to |
19 | pass | shvar usage |
20 | pass | shvar global |
21 | pass | shvar local |
22 | pass | shvar IFS |
23 | pass | shvarGet() |
24 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped