spec test index / oilshell.org
82 passed, 4 OK, 4 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
osh | 20 -n for no execution (useful with --ast-output) [osh stdout] Expected '1\n', got '1\n2\n3\n' stdout: 1 2 3stderr: |
osh-cpp | 20 -n for no execution (useful with --ast-output) [osh-cpp stdout] Expected '1\n', got '1\n2\n3\n' stdout: 1 2 3stderr: |
osh | 30 SHELLOPTS is readonly stdout: stderr: SHELLOPTS=x ^~~~~~~~~~ [ stdin ]:1: fatal: Can't assign to readonly value 'SHELLOPTS' |
osh-cpp | 30 SHELLOPTS is readonly stdout: stderr: SHELLOPTS=x ^~~~~~~~~~ [ stdin ]:1: fatal: Can't assign to readonly value 'SHELLOPTS' |
osh | 31 SHELLOPTS and BASHOPTS are set [osh status] Expected 0, got 1 stdout: stderr: echo shellopts ${SHELLOPTS:?} > /dev/null ^~~~~~~~~ [ stdin ]:1: fatal: Var SHELLOPTS is empty |
osh-cpp | 31 SHELLOPTS and BASHOPTS are set [osh-cpp status] Expected 0, got 1 stdout: stderr: echo shellopts ${SHELLOPTS:?} > /dev/null ^~~~~~~~~ [ stdin ]:1: fatal: Var SHELLOPTS is empty |
osh | 32 set - - stdout: a b - a b a b - - - + + - --stderr: |
osh-cpp | 32 set - - stdout: a b - a b a b - - - + + - --stderr: |
osh | 36 set without args and array variables (not in OSH) stdout: stderr: |
osh-cpp | 36 set without args and array variables (not in OSH) stdout: stderr: |
osh | 37 set without args and assoc array variables (not in OSH) stdout: stderr: __assoc[a]=b ^~~~~~~~ [ stdin ]:3: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101) |
osh-cpp | 37 set without args and assoc array variables (not in OSH) stdout: stderr: __assoc[a]=b ^~~~~~~~ [ stdin ]:3: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101) |