spec test index / oilshell.org
case | dash | bash | mksh | osh | osh_ALT | osh-byterun | description |
0 | pass | pass | pass | pass | pass | FAIL | zero args: [ ] |
details | |||||||
1 | pass | pass | pass | pass | pass | FAIL | one arg: [ x ] where x is one of '=' '!' '(' ']' |
details | |||||||
2 | pass | pass | pass | pass | pass | FAIL | one arg: empty string is false. Equivalent to -n. |
details | |||||||
3 | N-I | pass | pass | pass | pass | FAIL | -a as unary operator (alias of -e) |
details | details | ||||||
4 | pass | pass | pass | pass | pass | FAIL | two args: -z with = ! ( ] |
details | |||||||
5 | pass | pass | pass | pass | pass | FAIL | three args |
details | |||||||
6 | pass | pass | pass | pass | pass | FAIL | four args |
details | |||||||
7 | pass | pass | pass | pass | pass | FAIL | test with extra args is syntax error |
details | |||||||
8 | pass | pass | pass | pass | pass | FAIL | ] syntax errors |
details | |||||||
9 | pass | pass | pass | pass | pass | FAIL | -n |
details | |||||||
10 | pass | pass | pass | pass | pass | FAIL | ! -a |
details | |||||||
11 | pass | pass | pass | pass | pass | FAIL | -o |
details | |||||||
12 | pass | pass | pass | pass | pass | FAIL | ( ) |
details | |||||||
13 | pass | pass | pass | pass | pass | FAIL | ( ) ! -a -o with system version of [ |
details | |||||||
14 | BUG | pass | pass | pass | pass | FAIL | == is alias for = |
details | details | ||||||
15 | N-I | pass | pass | pass | pass | FAIL | == and = does not do glob |
details | details | ||||||
16 | pass | pass | pass | pass | pass | FAIL | [ with op variable |
details | |||||||
17 | pass | pass | pass | pass | pass | FAIL | [ with unquoted empty var |
details | |||||||
18 | pass | pass | pass | pass | pass | FAIL | [ compare with literal -f |
details | |||||||
19 | pass | pass | pass | pass | pass | FAIL | [ '(' foo ] is runtime syntax error |
details | |||||||
20 | pass | pass | pass | pass | pass | FAIL | -z '>' implies two token lookahead |
details | |||||||
21 | ok | pass | ok | pass | pass | FAIL | operator/operand ambiguity with ] |
details | details | details | |||||
22 | ok | pass | ok | pass | pass | FAIL | operator/operand ambiguity with -a |
details | details | details | |||||
23 | pass | pass | pass | pass | pass | FAIL | -d |
details | |||||||
24 | pass | pass | pass | pass | pass | FAIL | -x |
details | |||||||
25 | pass | pass | pass | pass | pass | FAIL | -r |
details | |||||||
26 | pass | pass | pass | pass | pass | FAIL | -w |
details | |||||||
27 | pass | pass | pass | pass | pass | FAIL | -h and -L test for symlink |
details | |||||||
28 | pass | pass | pass | pass | pass | FAIL | -t 1 for stdout |
details | |||||||
29 | pass | BUG | pass | pass | pass | FAIL | [ -t invalid ] |
details | details | ||||||
30 | pass | pass | pass | pass | pass | FAIL | -ot and -nt |
details | |||||||
31 | pass | pass | BUG | pass | pass | FAIL | [ a -eq b ] |
details | details | ||||||
32 | pass | pass | pass | pass | pass | FAIL | test -s |
details |
156 passed, 4 ok, 2 known unimplemented, 3 known bugs, 0 failed, 0 skipped
osh-byterun | 0 zero args: [ ] [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 | 1 one arg: [ x ] where x is one of '=' '!' '(' ']' [osh-byterun stdout] Expected u'status=0\nstatus=0\nstatus=0\nstatus=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 |
osh-byterun | 2 one arg: empty string is false. Equivalent to -n. [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 |
dash | 3 -a as unary operator (alias of -e) stdout: status=2 status=2stderr: _tmp/spec-bin/dash: 1: [: -a: unexpected operator _tmp/spec-bin/dash: 3: [: -a: unexpected operator |
osh-byterun | 3 -a as unary operator (alias of -e) [osh-byterun stdout] Expected u'status=0\nstatus=1\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 | 4 two args: -z with = ! ( ] [osh-byterun stdout] Expected u'status=1\nstatus=1\nstatus=1\nstatus=1\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 | 5 three args [osh-byterun stdout] Expected u'status=1\nstatus=1\nstatus=0\nstatus=0\nstatus=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 |
osh-byterun | 6 four args [osh-byterun stdout] Expected u'status=1\nstatus=1\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 test with extra args is syntax error [osh-byterun stdout] Expected 'status=2\nstatus=2\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 ] syntax errors [osh-byterun stdout] Expected 'status=2\nstatus=1\nstatus=2\nstatus=2\nstatus=2\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 -n [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 | 10 ! -a [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 |
osh-byterun | 11 -o [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 |
osh-byterun | 12 ( ) [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 |
osh-byterun | 13 ( ) ! -a -o with system version of [ [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 |
dash | 14 == is alias for = stdout: truestderr: _tmp/spec-bin/dash: 2: [: a: unexpected operator |
osh-byterun | 14 == is alias for = [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 |
dash | 15 == and = does not do glob stdout: status=1 status=2stderr: _tmp/spec-bin/dash: 3: [: abc: unexpected operator |
osh-byterun | 15 == and = does not do glob [osh-byterun stdout] Expected u'status=1\nstatus=1\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 [ with op variable [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 [ with unquoted empty var [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 | 18 [ compare with literal -f [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 [ '(' foo ] is runtime syntax error [osh-byterun stdout] Expected 'status=2\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 | 20 -z '>' implies two token lookahead [osh-byterun stdout] Expected u'true\nfalse\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 |
dash | 21 operator/operand ambiguity with ] stdout: status=2stderr: _tmp/spec-bin/dash: 1: [: -a: unexpected operator |
mksh | 21 operator/operand ambiguity with ] stdout: status=2stderr: _tmp/spec-bin/mksh: <stdin>[1]: [: ]: unexpected operator/operand |
osh-byterun | 21 operator/operand ambiguity with ] [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 |
dash | 22 operator/operand ambiguity with -a stdout: status=1stderr: |
mksh | 22 operator/operand ambiguity with -a stdout: status=2stderr: _tmp/spec-bin/mksh: <stdin>[1]: [: expression expected |
osh-byterun | 22 operator/operand ambiguity with -a [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 |
osh-byterun | 23 -d [osh-byterun stdout] Expected u'status=0\nstatus=1\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 | 24 -x [osh-byterun stdout] Expected u'no\nyes\nbad\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 -r [osh-byterun stdout] Expected u'yes\nno\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 | 26 -w [osh-byterun stdout] Expected u'yes\nno\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 | 27 -h and -L test for symlink [osh-byterun stdout] Expected 'no\nno\nis-file\nsymlink\nsymlink\ndangling\ndangling\ndangling is not file\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 -t 1 for stdout [osh-byterun stdout] Expected 'status=1\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 | 29 [ -t invalid ] stdout: status=1stderr: |
osh-byterun | 29 [ -t invalid ] [osh-byterun stdout] Expected 'status=2\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 | 30 -ot and -nt [osh-byterun stdout] Expected 'older\nnot newer\nnot older than itself\nnot newer than itself\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 | 31 [ a -eq b ] stdout: status=0stderr: |
osh-byterun | 31 [ a -eq b ] [osh-byterun stdout] Expected 'status=2\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 test -s [osh-byterun stdout] Expected 'status=1\nstatus=1\nstatus=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 |