Results for ysh-scope.test.sh

statusosh
pass 20
FAIL 1
total21
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
10FAIL setref equivalent without pgen2 syntax, using open proc
details
11pass unset inside proc uses local scope
12pass unset composes when you turn on dynamic scope
13pass Temp Bindings
14pass cd blocks don't introduce new scopes
15pass IFS=: myproc exports when it doesn't need to
16pass shvar usage
17pass shvar global
18pass shvar local
19pass shvar IFS
20pass shvarGet()
20 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh10 setref equivalent without pgen2 syntax, using open proc

[osh stdout] Expected 'foo-SS\nfoo-TT\n', got 'abc\ndef\n'

stdout:
abc
def
stderr:
    setref s = "foo-$val"
    ^~~~~~
[ stdin ]:9: 'setref' not found
    setref s = "foo-$val"
    ^~~~~~
[ stdin ]:9: 'setref' not found