hay-isolation () { run-file hay-isolation "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" }
spec test index / oilshell.org
status | osh | osh_ALT | |
pass | 5 | 5 | |
FAIL | 1 | 1 | |
total | 6 | 6 | |
case | osh | osh_ALT | description |
0 | pass | pass | Turn off external binaries with shvar PATH='' {} |
1 | pass | pass | More shvar PATH='' |
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 |
10 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 5 hay at top level allows arbitrary commands [osh stdout] Expected '3\n4\ninside\n', got '3\n4\n--- -\t2024-07-10 03:29:44.603617416 +0000\n+++ actual.txt\t2024-07-10 03:29:44.596860733 +0000\n@@ -1,4 +0,0 @@\n-[\n- "1",\n- "2"\n-]\ninside\n' stdout: 3 4 --- - 2024-07-10 03:29:44.603617416 +0000 +++ actual.txt 2024-07-10 03:29:44.596860733 +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 31002: 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-07-10 03:29:44.660134552 +0000\n+++ actual.txt\t2024-07-10 03:29:44.652861118 +0000\n@@ -1,4 +0,0 @@\n-[\n- "1",\n- "2"\n-]\ninside\n' stdout: 3 4 --- - 2024-07-10 03:29:44.660134552 +0000 +++ actual.txt 2024-07-10 03:29:44.652861118 +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 31008: command.Simple failed with status 127 |