spec test index / oilshell.org
149 passed, 9 ok, 4 known unimplemented, 0 known bugs, 1 failed, 0 skipped
osh-byterun | 0 [[ glob matching, [[ has no glob expansion [osh-byterun stdout] Expected u'true\nfalse\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 1 [[ glob matching with escapes [osh-byterun stdout] Expected 'true\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 2 equality [osh-byterun stdout] Expected u'true\nfalse\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 3 [[ glob matching with unquoted var [osh-byterun stdout] Expected u'true\nfalse\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 4 [[ regex matching stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: syntax error: '=~' unexpected operator/operand |
osh-byterun | 4 [[ regex matching [osh-byterun stdout] Expected u'true\nfalse\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 5 [[ regex syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '=~' unexpected operator/operand |
osh-byterun | 5 [[ regex syntax error [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 6 [[ has no word splitting [osh-byterun stdout] Expected 'true\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 7 [[ has quote joining [osh-byterun stdout] Expected 'true\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 8 [[ empty string is false [osh-byterun stdout] Expected u'true\nfalse\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 9 && chain [osh-byterun stdout] Expected 'false\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 10 || chain [osh-byterun stdout] Expected 'true\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 11 [[ compound expressions [osh-byterun stdout] Expected 'true\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 12 precedence of && and || inside [[ [osh-byterun stdout] Expected 'true\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 13 precedence of && and || in a command context [osh-byterun stdout] Expected 'NO precedence\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 14 Octal literals with -eq stdout: falsestderr: |
osh-byterun | 14 Octal literals with -eq [osh-byterun stdout] Expected u'true\nfalse\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 15 Hex literals with -eq stdout: falsestderr: _tmp/spec-bin/mksh: <stdin>[3]: 0x0f: bad number '0x0f' |
osh-byterun | 15 Hex literals with -eq [osh-byterun stdout] Expected u'true\nfalse\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 16 > on strings [osh-byterun stdout] Expected u'true\nfalse\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 17 != on strings [osh-byterun stdout] Expected u'true\nfalse\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
bash | 18 -eq on strings stdout: true truestderr: |
mksh | 18 -eq on strings stdout: true truestderr: |
osh-byterun | 18 -eq on strings [osh-byterun stdout] Expected u'true\ntrue\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 19 [[ compare with literal -f (compare with test-builtin.test.sh) [osh-byterun stdout] Expected u'true\ntrue\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 20 [[ with op variable (compare with test-builtin.test.sh) stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: syntax error: '$op' unexpected operator/operand |
osh-byterun | 20 [[ with op variable (compare with test-builtin.test.sh) [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 21 [[ with unquoted empty var (compare with test-builtin.test.sh) [osh-byterun stdout] Expected 'true\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 22 [[ at runtime doesn't work [osh-byterun status] Expected 127, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 23 [[ with env prefix doesn't work [osh-byterun status] Expected 127, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 24 [[ over multiple lines is OK [osh-byterun stdout] Expected u'true\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 25 Argument that looks like a command word operator [osh-byterun stdout] Expected u'false\nfalse\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 26 Argument that looks like a real operator stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '-f' missing argument |
osh-byterun | 26 Argument that looks like a real operator [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 27 Does user array equal "$@" ? [osh-byterun stdout] Expected 'true\nfalse\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 28 Array coerces to string [osh-byterun stdout] Expected 'true\nfalse\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 29 Quotes don't matter in comparison [osh-byterun stdout] Expected u'true\ntrue\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh | 30 -eq with arithmetic expression! [osh stdout] Expected 'true\ntrue\n', got '' [osh status] Expected 0, got 1 stdout: stderr: osh warning: Invalid integer constant '1+2' osh warning: Invalid integer constant '1+2' |
osh_ALT | 30 -eq with arithmetic expression! [osh_ALT stdout] Expected 'true\ntrue\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: osh warning: Invalid integer constant '1+2' osh warning: Invalid integer constant '1+2' |
osh-byterun | 30 -eq with arithmetic expression! [osh-byterun stdout] Expected 'true\ntrue\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 31 -eq coercion produces weird results [osh-byterun stdout] Expected 'true\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 32 [[ '(' ]] is treated as literal [osh-byterun stdout] Expected 'status=0\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 33 [[ '(' foo ]] is syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: 'foo' unexpected operator/operand |
osh-byterun | 33 [[ '(' foo ]] is syntax error [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 34 empty ! is treated as literal [osh-byterun stdout] Expected 'status=0\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 35 [[ -z ]] is syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: syntax error: 'echo' unexpected operator/operand |
osh-byterun | 35 [[ -z ]] is syntax error [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 36 [[ -z '>' ]] [osh-byterun stdout] Expected 'false\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 37 [[ -z '>' a ]] is syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '--' unexpected operator/operand |
osh-byterun | 37 [[ -z '>' a ]] is syntax error [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 38 test whether ']]' is empty [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 39 [[ ]] is syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: 'newline' unexpected operator/operand |
osh-byterun | 39 [[ ]] is syntax error [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 40 [[ && ]] is syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '&&' expression expected |
osh-byterun | 40 [[ && ]] is syntax error [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |