| status | ysh | |
| pass | 4 | |
| FAIL | 3 | |
| total | 7 | |
| case | ysh | description |
| 0 | pass | global frame doesn't contain builtins like len(), dict(), io |
| 1 | pass | global frame doesn't contain env vars |
| 2 | FAIL | global frame doesn't have PWD, IFS |
| details | ||
| 3 | FAIL | __defaults__ is a Dict, showing default PATH, PS1 |
| details | ||
| 4 | pass | __builtins__ module |
| 5 | pass | cd builtin respects ENV.HOME, not HOME |
| 6 | FAIL | compgen -c respects ENV.PATH, not PATH |
| details |
4 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
| ysh | 2 global frame doesn't have PWD, IFS [ysh stdout] Expected '' Got 'IFS=[ \t\n]\n' [ysh status] Expected 0 Got 1 stdout: IFS=[ ]stderr: echo "PWD=[$PWD]"
^~~~
[ stdin ]:2: fatal: Undefined variable 'PWD'
|
| ysh | 3 __defaults__ is a Dict, showing default PATH, PS1 [ysh stdout] Expected '(Str) "Dict"\n' Got '(Str) "Dict"\n(Dict) {}\n' stdout: (Str) "Dict"
(Dict) {}
stderr: |
| ysh | 6 compgen -c respects ENV.PATH, not PATH [ysh stdout] Expected 'ls\n' Got '' [ysh status] Expected 0 Got 1 stdout: stderr: compgen -c | grep -w 'ls'
^~~~~~~
[ stdin ]:3: 'compgen' expected argument to '-c'
compgen -c | grep -w 'ls'
^~~~~~~
[ stdin ]:3: errexit PID 48535: Command failed with status 2
compgen -c | grep -w 'ls'
^~~~
[ stdin ]:3: errexit PID 48532: Command failed with status 1
compgen -c | grep -w 'ls'
^~~~
[ stdin ]:3: errexit PID 48532: Pipeline failed with status 1
|