| status | osh | osh-cpp | |
| pass | 9 | 9 | |
| FAIL | 3 | 3 | |
| total | 12 | 12 | |
| case | osh | osh-cpp | description |
| 0 | pass | pass | invoke usage |
| 1 | pass | pass | invoke nonexistent name |
| 2 | pass | pass | type and command builtin does not find private sleep, because it's not enabled |
| 3 | pass | pass | type -a does not find private builtins |
| 4 | pass | pass | but invoke --show finds the private builtin (alternative to type, command) |
| 5 | FAIL | FAIL | invoke --show with many types |
| details | details | ||
| 6 | pass | pass | invoke --show does proper quoting |
| 7 | pass | pass | builtin sleep behaves like external sleep |
| 8 | pass | pass | builtin sleep usage errors |
| 9 | pass | pass | sleep without prefix is still external |
| 10 | FAIL | FAIL | builtin cat |
| details | details | ||
| 11 | FAIL | FAIL | builtin readlink |
| details | details |
18 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
| osh | 5 invoke --show with many types [osh stdout] Expected '', got 'my-name\nmy-name is an alias for "echo my-alias"\nmy-name is a shell function\nmy-name is /home/uke/oil/_tmp/spec-tmp/ysh-builtin-private.test.sh.31266/05-osh/dir/my-name\nmy-name\talias\t"echo my-alias"\nmy-name\tproc\t-\nmy-name\tsh-func\t-\neval\tbuiltin\ts\ncd\tbuiltin\t-\n' stdout: my-name my-name is an alias for "echo my-alias" my-name is a shell function my-name is /home/uke/oil/_tmp/spec-tmp/ysh-builtin-private.test.sh.31266/05-osh/dir/my-name my-name alias "echo my-alias" my-name proc - my-name sh-func - eval builtin s cd builtin -stderr: |
| osh-cpp | 5 invoke --show with many types [osh-cpp stdout] Expected '', got 'my-name\nmy-name is an alias for "echo my-alias"\nmy-name is a shell function\nmy-name is /home/uke/oil/_tmp/spec-tmp/ysh-builtin-private.test.sh.31266/05-osh-cpp/dir/my-name\nmy-name\talias\t"echo my-alias"\nmy-name\tproc\t-\nmy-name\tsh-func\t-\neval\tbuiltin\ts\ncd\tbuiltin\t-\n' stdout: my-name my-name is an alias for "echo my-alias" my-name is a shell function my-name is /home/uke/oil/_tmp/spec-tmp/ysh-builtin-private.test.sh.31266/05-osh-cpp/dir/my-name my-name alias "echo my-alias" my-name proc - my-name sh-func - eval builtin s cd builtin -stderr: |
| osh | 10 builtin cat [osh stdout] Expected '1\n2\n3\n', got '' [osh status] Expected 0, got 1 stdout: stderr: seq 3 | builtin cat
^~~
[ stdin ]:3: 'cat' isn't a shell builtin
|
| osh-cpp | 10 builtin cat [osh-cpp stdout] Expected '1\n2\n3\n', got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: seq 3 | builtin cat
^~~
[ stdin ]:3: 'cat' isn't a shell builtin
|
| osh | 11 builtin readlink [osh stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |
| osh-cpp | 11 builtin readlink [osh-cpp stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |