Results for ysh-scope.test.sh

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

[osh-cpp 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