spec test index / oilshell.org
76 passed, 4 OK, 4 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped 3 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 | 26 noclobber on [osh stdout] Expected u'0\n1\n', got '0\n0\n' stdout: 0 0stderr: rm: cannot remove '/home/uke/oil/_tmp/spec-tmp/sh-options.test.sh.18552/26-osh/no-clobber': No such file or directory |
osh-cpp | 26 noclobber on [osh-cpp stdout] Expected u'0\n1\n', got '0\n0\n' stdout: 0 0stderr: rm: cannot remove '/home/uke/oil/_tmp/spec-tmp/sh-options.test.sh.18552/26-osh-cpp/no-clobber': No such file or directory |
osh | 28 SHELLOPTS is readonly stdout: stderr: SHELLOPTS=x ^~~~~~~~~~ [ stdin ]:1: fatal: Can't assign to readonly value 'SHELLOPTS' |
osh-cpp | 28 SHELLOPTS is readonly stdout: stderr: SHELLOPTS=x ^~~~~~~~~~ [ stdin ]:1: fatal: Can't assign to readonly value 'SHELLOPTS' |
osh | 29 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 | 29 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 | 30 set - - stdout: a b - a b a b - - - + + - --stderr: |
osh-cpp | 30 set - - stdout: a b - a b a b - - - + + - --stderr: |
osh | 34 set without args and array variables (not in OSH) stdout: stderr: |
osh-cpp | 34 set without args and array variables (not in OSH) stdout: stderr: |
osh | 35 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 | 35 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) |