spec test index / oilshell.org
78 passed, 4 OK, 4 not implemented, 0 BUG, 3 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 | 27 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.18894/27-osh/no-clobber': No such file or directory |
osh-cpp | 27 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.18894/27-osh-cpp/no-clobber': No such file or directory |
osh | 29 SHELLOPTS is readonly stdout: stderr: SHELLOPTS=x ^~~~~~~~~~ [ stdin ]:1: fatal: Can't assign to readonly value 'SHELLOPTS' |
osh-cpp | 29 SHELLOPTS is readonly stdout: stderr: SHELLOPTS=x ^~~~~~~~~~ [ stdin ]:1: fatal: Can't assign to readonly value 'SHELLOPTS' |
osh | 30 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 | 30 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 | 31 set - - stdout: a b - a b a b - - - + + - --stderr: |
osh-cpp | 31 set - - stdout: a b - a b a b - - - + + - --stderr: |
osh | 35 set without args and array variables (not in OSH) stdout: stderr: |
osh-cpp | 35 set without args and array variables (not in OSH) stdout: stderr: |
osh | 36 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 | 36 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) |