spec test index / oilshell.org
96 passed, 8 ok, 16 known unimplemented, 4 known bugs, 3 failed, 0 skipped
mksh | 2 Env binding can use preceding bindings, but not subsequent ones stdout: foo [][] bazstderr: |
dash | 7 Multiple temporary envs on the stack stdout: f [] [A] --- g() --- None None None None p --- f() --- None None None None Nonestderr: |
mksh | 7 Multiple temporary envs on the stack stdout: f [] [A] --- g() --- f [] [A] None p --- f() --- f [] [A] None Nonestderr: |
dash | 9 Env binding not allowed before compound command stdout: stderr: _tmp/spec-bin/dash: 1: for: not found |
mksh | 9 Env binding not allowed before compound command stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: 'do' unexpected |
osh | 9 Env binding not allowed before compound command [osh status] Expected 2, got 127 stdout: stderr: Unexpected error in execvpe('for', ['for', 'i', 'in', 'a', 'b'], ...): [Errno 2] No such file or directory |
osh-byterun | 9 Env binding not allowed before compound command [osh-byterun status] Expected 2, got 127 stdout: stderr: Unexpected error in execvpe('for', ['for', 'i', 'in', 'a', 'b'], ...): [Errno 2] No such file or directory |
dash | 14 Env binding in readonly/declare disallowed stdout: v=Nonestderr: |
bash | 14 Env binding in readonly/declare disallowed stdout: v=Nonestderr: |
mksh | 14 Env binding in readonly/declare disallowed stdout: v=Nonestderr: |
dash | 15 local -a stdout: stderr: _tmp/spec-bin/dash: 2: Syntax error: "(" unexpected (expecting "}") |
mksh | 15 local -a stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: syntax error: '(' unexpected |
dash | 16 declare -a stdout: stderr: _tmp/spec-bin/dash: 1: Syntax error: "(" unexpected |
mksh | 16 declare -a stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected |
dash | 17 typeset -a a[1]=a a[3]=c stdout: stderr: _tmp/spec-bin/dash: 1: typeset: not found _tmp/spec-bin/dash: 2: Bad substitution |
osh | 17 typeset -a a[1]=a a[3]=c [osh stdout] Expected "['x', 'z']\n", got '' [osh status] Expected 0, got 2 stdout: stderr: Line 2 of '<stdin>' typeset -a a[1*1]=x a[1+2]=z ^ Invalid variable name 'a[1*1]=x' --- *** Error has no source location info *** Error parsing AndOr in ParseCommandTerm --- |
osh-byterun | 17 typeset -a a[1]=a a[3]=c [osh-byterun stdout] Expected "['x', 'z']\n", got '' [osh-byterun status] Expected 0, got 2 stdout: stderr: Line 2 of '<stdin>' typeset -a a[1*1]=x a[1+2]=z ^ Invalid variable name 'a[1*1]=x' --- *** Error has no source location info *** Error parsing AndOr in ParseCommandTerm --- |
dash | 18 indexed LHS without spaces is allowed stdout: stderr: _tmp/spec-bin/dash: 1: a[1: not found _tmp/spec-bin/dash: 2: Bad substitution |
osh | 18 indexed LHS without spaces is allowed [osh stdout] Expected "['x', 'z']\n", got '[]\n' stdout: []stderr: Unexpected error in execvpe('a[1', ['a[1', 'INSTALL.txt', 'LICENSE.txt', 'Makefile', 'Python-2.7.12.tar.xz', 'Python-2.7.13', 'README.md', 'Vagrantfile', '_G', '__init__.py', '_bin', '_build', '_deps', '_devbuild', '_release', '_tmp', 'asdl', 'benchmarks', 'bin', 'build', 'burn.py', 'configure', 'core', 'demo', 'devtools', 'doc', 'fastlex.so', 'gold', 'install', 'libc.so', 'local.sh', 'native', 'oil', 'oil-version.txt', 'opy', 'osh', 'ovm', 'portable-rules.mk', 'scripts', 'spec', 'test', 'testdata', 'tools', 'web', '1]=x', 'a[', '1', '+', '2', ']=z'], ...): [Errno 2] No such file or directory |
osh-byterun | 18 indexed LHS without spaces is allowed [osh-byterun stdout] Expected "['x', 'z']\n", got '[]\n' stdout: []stderr: Unexpected error in execvpe('a[1', ['a[1', 'INSTALL.txt', 'LICENSE.txt', 'Makefile', 'Python-2.7.12.tar.xz', 'Python-2.7.13', 'README.md', 'Vagrantfile', '_G', '__init__.py', '_bin', '_build', '_deps', '_devbuild', '_release', '_tmp', 'asdl', 'benchmarks', 'bin', 'build', 'burn.py', 'configure', 'core', 'demo', 'devtools', 'doc', 'fastlex.so', 'gold', 'install', 'libc.so', 'local.sh', 'native', 'oil', 'oil-version.txt', 'opy', 'osh', 'ovm', 'portable-rules.mk', 'scripts', 'spec', 'test', 'testdata', 'tools', 'web', '1]=x', 'a[', '1', '+', '2', ']=z'], ...): [Errno 2] No such file or directory |
dash | 19 declare -f stdout: 127 127 127stderr: _tmp/spec-bin/dash: 2: declare: not found _tmp/spec-bin/dash: 5: declare: not found _tmp/spec-bin/dash: 8: declare: not found |
mksh | 19 declare -f stdout: 127 127 127stderr: _tmp/spec-bin/mksh: <stdin>[2]: declare: not found _tmp/spec-bin/mksh: <stdin>[5]: declare: not found _tmp/spec-bin/mksh: <stdin>[8]: declare: not found |
dash | 20 declare -p stdout: 127 127 127stderr: _tmp/spec-bin/dash: 2: declare: not found _tmp/spec-bin/dash: 5: declare: not found _tmp/spec-bin/dash: 8: declare: not found |
mksh | 20 declare -p stdout: 127 127 127stderr: _tmp/spec-bin/mksh: <stdin>[2]: declare: not found _tmp/spec-bin/mksh: <stdin>[5]: declare: not found _tmp/spec-bin/mksh: <stdin>[8]: declare: not found |
dash | 21 typeset -f stdout: 127 127 127stderr: _tmp/spec-bin/dash: 1: typeset: not found _tmp/spec-bin/dash: 4: typeset: not found _tmp/spec-bin/dash: 7: typeset: not found |
dash | 22 typeset -p stdout: 127 127 127stderr: _tmp/spec-bin/dash: 2: typeset: not found _tmp/spec-bin/dash: 5: typeset: not found _tmp/spec-bin/dash: 8: typeset: not found |
mksh | 22 typeset -p stdout: 0 0 0stderr: |
dash | 23 typeset -r makes a string readonly stdout: status=0 status=0 status=127 status=127 status=0 status=0stderr: _tmp/spec-bin/dash: 1: typeset: not found _tmp/spec-bin/dash: 2: typeset: not found _tmp/spec-bin/dash: 7: s1+=e: not found _tmp/spec-bin/dash: 9: s2+=f: not found |
bash | 23 typeset -r makes a string readonly stdout: status=1 status=1 status=1 status=1 status=1 status=1stderr: _tmp/spec-bin/bash: line 3: s1: readonly variable _tmp/spec-bin/bash: line 5: s2: readonly variable _tmp/spec-bin/bash: line 7: s1: readonly variable _tmp/spec-bin/bash: line 9: s2: readonly variable _tmp/spec-bin/bash: line 11: unset: s1: cannot unset: readonly variable _tmp/spec-bin/bash: line 13: unset: s2: cannot unset: readonly variable |
mksh | 23 typeset -r makes a string readonly stdout: stderr: _tmp/spec-bin/mksh: <stdin>[3]: read-only: s1 |
dash | 24 typeset -ar makes it readonly stdout: stderr: _tmp/spec-bin/dash: 1: Syntax error: "(" unexpected |
bash | 24 typeset -ar makes it readonly stdout: status=1 status=1 status=1 status=1 status=1 status=1stderr: _tmp/spec-bin/bash: line 3: array1: readonly variable _tmp/spec-bin/bash: line 5: array2: readonly variable _tmp/spec-bin/bash: line 7: array1: readonly variable _tmp/spec-bin/bash: line 9: array2: readonly variable _tmp/spec-bin/bash: line 11: unset: array1: cannot unset: readonly variable _tmp/spec-bin/bash: line 13: unset: array2: cannot unset: readonly variable |
mksh | 24 typeset -ar makes it readonly stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected |
dash | 25 typeset -x makes it exported stdout: Nonestderr: _tmp/spec-bin/dash: 1: typeset: not found |