Results for ysh-scope.test.sh

statusoshosh_ALT
pass 2525
FAIL 11
total2626
caseoshosh_ALTdescription
0pass pass GetValue scope and shopt --unset dynamic_scope
1pass pass SetValue scope and shopt --unset dynamic_scope
2pass pass read scope (setref)
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
10pass pass setref with out Ref param
11pass pass setref with conflicting variable name
12pass pass setref of regular param is a fatal error
13pass pass setref equivalent without pgen2 syntax, using open proc
14pass pass setref a, b = 'one', 'two'
15FAIL FAIL setref a[i]
detailsdetails
16pass pass unset inside proc uses local scope
17pass pass unset composes when you turn on dynamic scope
18pass pass Temp Bindings
19pass pass cd blocks don't introduce new scopes
20pass pass IFS=: myproc exports when it doesn't need to
21pass pass shvar usage
22pass pass shvar global
23pass pass shvar local
24pass pass shvar IFS
25pass pass shvar_get()
50 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

osh15 setref a[i]

[osh stdout] Expected 'a\nz\nc\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
    setref a[1] = item
    ^~~~~~
[ stdin ]:4: fatal: setref obj[index] not implemented
osh_ALT15 setref a[i]

[osh_ALT stdout] Expected 'a\nz\nc\n', got ''
[osh_ALT status] Expected 0, got 1

stdout:
stderr: 
    setref a[1] = item
    ^~~~~~
[ stdin ]:4: fatal: setref obj[index] not implemented