Results for ysh-env.test.sh

statusosh
pass 7
FAIL 3
total10
caseoshdescription
0pass Can read from ENV Dict
1pass YSH doesn't have exported vars (declare -x)
2FAIL Temp bindings A=a B=b my-command push to ENV dict
details
3pass setglobal ENV.PYTHONPATH = 'foo' changes child process state
4pass export builtin is disabled in ysh:all, in favor of setglobal
5FAIL ysh:upgrade can use both export builtin and setglobal ENV
details
6FAIL PS4 environment variable is respected
details
7pass ENV works in different modules
8pass HOME var
9pass exec builtin respects ENV
7 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh2 Temp bindings A=a B=b my-command push to ENV dict

[osh stdout] Expected '_A=a\n_B=b\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  _A=a _B=b env | grep '^_' | sort
                  ^~~~
[ stdin ]:3: errexit PID 38332: command.Pipeline failed with status 1
osh5 ysh:upgrade can use both export builtin and setglobal ENV

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

stdout:
ZZ=
ZZ=setglobal
stderr:
osh6 PS4 environment variable is respected

[osh stdout] Expected 'TODO\n', got '1\n2\n'

stdout:
1
2
stderr:
%%% echo 1
%%% echo 2