Results for ysh-scope.test.sh

statusosh
pass 24
total24
caseoshdescription
0pass GetValue scope and shopt --unset dynamic_scope
1pass SetValue scope and shopt --unset dynamic_scope
2pass read scope
3pass printf -v x respects dynamic_scope
4pass printf -v a[i] respects dynamic_scope
5pass ${undef=a} and shopt --unset dynamic_scope
6pass declare -p respects it
7pass OshLanguageSetValue constructs
8pass shell assignments 'neutered' inside 'proc'
9pass setglobal still allows setting globals
10pass setglobal d[key] inside proc should mutate global (bug #1841)
11pass setglobal a[i] inside proc
12pass setglobal a[i] += and d.key +=
13pass setglobal a[i] - i can be local or global
14pass unset inside proc uses local scope
15pass unset composes when you turn on dynamic scope
16pass Temp Bindings
17pass cd blocks don't introduce new scopes
18pass IFS=: myproc exports when it doesn't need to
19pass shvar usage
20pass shvar global
21pass shvar local
22pass shvar IFS
23pass shvarGet()
24 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped