Results for ysh-env.test.sh

statusosh
pass 12
FAIL 2
total14
caseoshdescription
0pass Can read from ENV Obj
1pass ENV works in different modules
2pass bin/ysh doesn't have exported vars (declare -x)
3pass Temp bindings A=a B=b my-command push to ENV Obj (ysh:all)
4pass Nested temp bindings
5pass Temp bindings can use locals in the same frame,(don't introduce new frame)
6pass setglobal ENV.PYTHONPATH = 'foo' changes child process state
7FAIL export builtin is disabled in ysh:all, in favor of setglobal
details
8FAIL ysh:upgrade can use both export builtin and setglobal ENV
details
9pass PS4 environment variable is respected
10pass ENV.HOME is respected
11pass exec builtin respects ENV
12pass setglobal quirk - do we need setenv?
13pass try to corrupt ENV var from user code
12 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh7 export builtin is disabled in ysh:all, in favor of setglobal

[osh status] Expected 1, got 2

stdout:
ZZ=setglobal
stderr:
  export ZZ='export'  # fails
            ^
[ stdin ]:7: Invalid quoted word part in YSH (OILS-ERR-17)
osh8 ysh:upgrade can use both export builtin and setglobal ENV

[osh stdout] Expected 'ZZ=export\nZZ=setglobal\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  export ZZ='export'  # fails
            ^
[ stdin ]:3: Invalid quoted word part in YSH (OILS-ERR-17)