spec test index / oilshell.org
| status | osh | osh_ALT | |
| pass | 3 | 3 | |
| FAIL | 3 | 3 | |
| total | 6 | 6 | |
| case | osh | osh_ALT | description |
| 0 | FAIL | FAIL | Turn off external binaries with shvar PATH='' {} |
| details | details | ||
| 1 | FAIL | FAIL | More shvar PATH='' |
| details | details | ||
| 2 | pass | pass | builtins and externals not available in hay eval |
| 3 | pass | pass | procs in hay eval |
| 4 | pass | pass | variables mutated within hay eval don't persist |
| 5 | FAIL | FAIL | hay at top level allows arbitrary commands |
| details | details |
6 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
| osh | 0 Turn off external binaries with shvar PATH='' {} [osh stdout] Expected 'status=0\nstatus=127\nstatus=127\nstatus=0\n' Got 'status=0\n' [osh status] Expected 0, got 1 stdout: status=0stderr: if (len(args) === 0) {
^
stdlib/ysh/shvar.ysh:3: Unexpected left paren (might need a space before it)
'file' -> '/tmp/file'
shvar PATH='' {
^
[ stdin ]:12: fatal: 'shvar' appears to be external. External commands don't accept typed args (OILS-ERR-200)
|
| osh_ALT | 0 Turn off external binaries with shvar PATH='' {} [osh_ALT stdout] Expected 'status=0\nstatus=127\nstatus=127\nstatus=0\n' Got 'status=0\n' [osh_ALT status] Expected 0, got 1 stdout: status=0stderr: source --builtin ysh/shvar.ysh
^~~
[ stdin ]:3: source failed: No builtin file 'stdlib/ysh/shvar.ysh'
'file' -> '/tmp/file'
shvar PATH='' {
^
[ stdin ]:12: fatal: 'shvar' appears to be external. External commands don't accept typed args (OILS-ERR-200)
|
| osh | 1 More shvar PATH='' [osh stdout] Expected 'status=127\nstatus=127\n_status 127\n', got '' [osh status] Expected 0, got 1 stdout: stderr: if (len(args) === 0) {
^
stdlib/ysh/shvar.ysh:3: Unexpected left paren (might need a space before it)
shvar PATH='' {
^
[ stdin ]:5: fatal: 'shvar' appears to be external. External commands don't accept typed args (OILS-ERR-200)
|
| osh_ALT | 1 More shvar PATH='' [osh_ALT stdout] Expected 'status=127\nstatus=127\n_status 127\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: source --builtin ysh/shvar.ysh
^~~
[ stdin ]:3: source failed: No builtin file 'stdlib/ysh/shvar.ysh'
shvar PATH='' {
^
[ stdin ]:5: fatal: 'shvar' appears to be external. External commands don't accept typed args (OILS-ERR-200)
|
| osh | 5 hay at top level allows arbitrary commands [osh stdout] Expected '3\n4\ninside\n', got '3\n4\n--- -\t2024-08-12 18:21:11.082850328 +0000\n+++ actual.txt\t2024-08-12 18:21:11.074546754 +0000\n@@ -1,4 +0,0 @@\n-[\n- "1",\n- "2"\n-]\ninside\n' stdout: 3 4 --- - 2024-08-12 18:21:11.082850328 +0000 +++ actual.txt 2024-08-12 18:21:11.074546754 +0000 @@ -1,4 +0,0 @@ -[ - "1", - "2" -] insidestderr: json write (_hay()) | jq '.children[0].args' > actual.txt
^~
[ stdin ]:9: 'jq' not found (OILS-ERR-100)
Package $(seq 2) {
^~~
[ stdin ]:20: Unknown command 'seq' while running hay
[ stdin ]:20: errexit PID 35301: command.Simple failed with status 127
|
| osh_ALT | 5 hay at top level allows arbitrary commands [osh_ALT stdout] Expected '3\n4\ninside\n', got '3\n4\n--- -\t2024-08-12 18:21:11.139693067 +0000\n+++ actual.txt\t2024-08-12 18:21:11.134546892 +0000\n@@ -1,4 +0,0 @@\n-[\n- "1",\n- "2"\n-]\ninside\n' stdout: 3 4 --- - 2024-08-12 18:21:11.139693067 +0000 +++ actual.txt 2024-08-12 18:21:11.134546892 +0000 @@ -1,4 +0,0 @@ -[ - "1", - "2" -] insidestderr: json write (_hay()) | jq '.children[0].args' > actual.txt
^~
[ stdin ]:9: 'jq' not found (OILS-ERR-100)
Package $(seq 2) {
^~~
[ stdin ]:20: Unknown command 'seq' while running hay
[ stdin ]:20: errexit PID 35307: command.Simple failed with status 127
|