spec test index / oilshell.org
109 passed, 6 ok, 8 known unimplemented, 1 known bugs, 2 failed, 0 skipped
osh-byterun | 0 Export sets a global variable [osh-byterun stdout] Expected u'X\nX\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 | 1 Export sets a global variable that persists after export -n stdout: X Xstderr: _tmp/spec-bin/dash: 5: export: Illegal option -n |
mksh | 1 Export sets a global variable that persists after export -n stdout: X Xstderr: _tmp/spec-bin/mksh: <stdin>[5]: export: -n: unknown option |
osh-byterun | 1 Export sets a global variable that persists after export -n [osh-byterun stdout] Expected u'X\nX\nX\nNone\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 | 2 export -n undefined is ignored stdout: stderr: _tmp/spec-bin/dash: 2: export: Illegal option -n |
mksh | 2 export -n undefined is ignored stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: export: -n: unknown option |
osh-byterun | 2 export -n undefined is ignored [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 | 3 Export a global variable and unset it [osh-byterun stdout] Expected u'X\nX\n\nNone\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 Export existing global variables [osh-byterun stdout] Expected u'g1\ng2\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 Export existing local variable [osh-byterun stdout] Expected u'local1\nNone\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 Export a local that shadows a global [osh-byterun stdout] Expected u'local1\nNone\nglobal\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 Export a variable before defining it [osh-byterun stdout] Expected 'u\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 Exporting a parent func variable (dynamic scope) [osh-byterun stdout] Expected u'before inner\nNone\ninner: X\nX\nafter inner\nX\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 Dependent export setting [osh-byterun stdout] Expected 'v=None\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 Exporting a variable doesn't change it [osh-byterun stdout] Expected 'not changed\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 | 11 assign to readonly variable stdout: stderr: _tmp/spec-bin/dash: 2: foo: is read only |
bash | 11 assign to readonly variable stdout: status=1stderr: _tmp/spec-bin/bash: line 2: foo: readonly variable |
mksh | 11 assign to readonly variable stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: read-only: foo |
dash | 12 assign to readonly variable - errexit stdout: stderr: _tmp/spec-bin/dash: 3: foo: is read only |
mksh | 12 assign to readonly variable - errexit stdout: stderr: _tmp/spec-bin/mksh: <stdin>[3]: read-only: foo |
osh-byterun | 13 Unset a variable [osh-byterun stdout] Expected u'foo=bar\nfoo=\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 | 14 Unset exit status [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 | 15 Unset nonexistent variable [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 | 16 Unset readonly variable stdout: stderr: _tmp/spec-bin/dash: 2: unset: R: is read only |
osh-byterun | 16 Unset readonly variable [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 |
dash | 17 Unset a function without -f stdout: foo foostderr: |
mksh | 17 Unset a function without -f stdout: foo foostderr: |
osh-byterun | 17 Unset a function without -f [osh-byterun stdout] Expected 'foo\n', got '' [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 | 18 Unset has dynamic scope [osh-byterun stdout] Expected u'foo=bar\nfoo=\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 Unset -v [osh-byterun stdout] Expected u'foo=\nfunction foo\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 Unset -f [osh-byterun stdout] Expected u'foo=bar\nstatus=127\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 Unset array member stdout: stderr: _tmp/spec-bin/dash: 1: Syntax error: "(" unexpected |
osh | 21 Unset array member [osh stdout] Expected 'x z len=2\n', got 'x y z len=3\n' stdout: x y z len=3stderr: |
osh_ALT | 21 Unset array member [osh_ALT stdout] Expected 'x z len=2\n', got 'x y z len=3\n' stdout: x y z len=3stderr: |
osh-byterun | 21 Unset array member [osh-byterun stdout] Expected 'x z len=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 |
dash | 22 Unset array member with expression stdout: stderr: _tmp/spec-bin/dash: 2: Syntax error: "(" unexpected |
osh | 22 Unset array member with expression [osh stdout] Expected 'x z len=2\n', got 'w x y z len=4\n' stdout: w x y z len=4stderr: |
osh_ALT | 22 Unset array member with expression [osh_ALT stdout] Expected 'x z len=2\n', got 'w x y z len=4\n' stdout: w x y z len=4stderr: |
osh-byterun | 22 Unset array member with expression [osh-byterun stdout] Expected 'x z len=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 | 23 Use local twice [osh-byterun stdout] Expected 'bar\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 | 24 Local without variable is still unset! stdout: stderr: _tmp/spec-bin/dash: 4: foo: parameter not set |