spec test index / oilshell.org
142 passed, 23 OK, 29 not implemented, 10 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
dash | 1 Export sets a global variable that persists after export -n stdout: X Xstderr: dash: 5: export: Illegal option -n |
mksh | 1 Export sets a global variable that persists after export -n stdout: X Xstderr: mksh: <stdin>[5]: export: -n: unknown option |
zsh | 1 Export sets a global variable that persists after export -n stdout: X X X Xstderr: zsh: bad option: -n |
dash | 2 export -n undefined is ignored stdout: stderr: dash: 2: export: Illegal option -n |
mksh | 2 export -n undefined is ignored stdout: stderr: mksh: <stdin>[2]: export: -n: unknown option |
zsh | 2 export -n undefined is ignored stdout: stderr: zsh: bad option: -n |
dash | 3 export -n foo=bar not allowed stdout: stderr: dash: 2: export: Illegal option -n |
bash-4 | 3 export -n foo=bar not allowed stdout: status=0 newstderr: |
mksh | 3 export -n foo=bar not allowed stdout: stderr: mksh: <stdin>[2]: export: -n: unknown option |
zsh | 3 export -n foo=bar not allowed stdout: status=1 oldstderr: zsh: bad option: -n |
dash | 13 can't export array (strict_array) stdout: stderr: dash: 1: shopt: not found dash: 3: typeset: not found dash: 4: Syntax error: "(" unexpected |
mksh | 13 can't export array (strict_array) stdout: 1stderr: mksh: <stdin>[1]: shopt: not found |
osh | 13 can't export array (strict_array) stdout: stderr: export a ^ [ stdin ]:6: fatal: Only strings can be exported (strict_array) |
mksh | 14 can't export associative array (strict_array) stdout: stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[3]: typeset: -A: unknown option mksh: <stdin>[4]: "foo": unexpected '"' |
osh | 14 can't export associative array (strict_array) stdout: stderr: export a ^ [ stdin ]:6: fatal: Only strings can be exported (strict_array) |
dash | 15 assign to readonly variable stdout: stderr: dash: 2: foo: is read only |
bash-4 | 15 assign to readonly variable stdout: status=1stderr: bash-4.4: line 2: foo: readonly variable |
mksh | 15 assign to readonly variable stdout: stderr: mksh: <stdin>[2]: read-only: foo |
dash | 16 Make an existing local variable readonly stdout: localstderr: dash: 1: eval: x: is read only |
mksh | 16 Make an existing local variable readonly stdout: local globalstderr: mksh: read-only: x |
dash | 17 assign to readonly variable - errexit stdout: stderr: dash: 3: foo: is read only |
mksh | 17 assign to readonly variable - errexit stdout: stderr: mksh: <stdin>[3]: read-only: foo |
dash | 21 Unset readonly variable stdout: stderr: dash: 2: unset: R: is read only |
zsh | 21 Unset readonly variable stdout: stderr: zsh: read-only variable: R |
dash | 22 Unset a function without -f stdout: foo foostderr: |
mksh | 22 Unset a function without -f stdout: foo foostderr: |
zsh | 22 Unset a function without -f stdout: foo foostderr: |
dash | 24 Unset and scope (bug #653) stdout: level2=yy level2= level1=xx level1= level2=yy level2=stderr: |
zsh | 24 Unset and scope (bug #653) stdout: level2=yy level2= level1=xx level1= level2=yy level2=stderr: |
dash | 25 unset of local reveals variable in higher scope stdout: x=foo x=stderr: |
bash-4 | 25 unset of local reveals variable in higher scope stdout: x=foo x=stderr: |
zsh | 25 unset of local reveals variable in higher scope stdout: x=foo x=stderr: |
dash | 26 Unset invalid variable name stdout: stderr: dash: 1: unset: %: bad variable name |
bash-4 | 26 Unset invalid variable name stdout: status=1stderr: bash-4.4: line 1: unset: `%': not a valid identifier |
mksh | 26 Unset invalid variable name stdout: status=1stderr: mksh: <stdin>[1]: read-only: % |
zsh | 26 Unset invalid variable name stdout: status=0stderr: |
dash | 30 Unset array member stdout: stderr: dash: 1: Syntax error: "(" unexpected |
zsh | 30 Unset array member stdout: status=0 y z len=3stderr: |
dash | 31 Unset errors stdout: status=0stderr: dash: 4: Syntax error: "(" unexpected |
dash | 32 Unset wrong type stdout: stderr: dash: 3: declare: not found dash: 4: unset: undef[1]: bad variable name |
mksh | 32 Unset wrong type stdout: stderr: |
zsh | 32 Unset wrong type stdout: undef 0 undef 1 array 0 array 1 assoc 0 assoc 0stderr: zsh: bad math expression: operand expected at `"key"' zsh: bad math expression: operand expected at `"key"' zsh: no matches found: [key]=val |
osh | 32 Unset wrong type stdout: undef 1 undef 1 array 0 array 0 assoc 0 assoc 0stderr: unset -v 'undef[1]' ^ [ stdin ]:4: 'undef' isn't an array unset -v 'undef["key"]' ^ [ stdin ]:6: 'undef' isn't an array |
dash | 33 unset -v assoc (related to issue #661) stdout: stderr: |
mksh | 33 unset -v assoc (related to issue #661) stdout: stderr: |
zsh | 33 unset -v assoc (related to issue #661) stdout: stderr: |
dash | 34 unset assoc errors stdout: stderr: |
mksh | 34 unset assoc errors stdout: stderr: |
dash | 35 Unset array member with dynamic parsing stdout: stderr: dash: 2: Syntax error: "(" unexpected |
zsh | 35 Unset array member with dynamic parsing stdout: stderr: zsh: no matches found: a[i+1] |
zsh | 36 Use local twice stdout: foo=bar barstderr: |
dash | 37 Local without variable is still unset! stdout: stderr: dash: 4: foo: parameter not set |
zsh | 37 Local without variable is still unset! stdout: []stderr: |
dash | 38 local after readonly stdout: stderr: dash: 3: local: y: is read only |
bash-4 | 38 local after readonly stdout: y= y=stderr: main: line 3: local: y: readonly variable |
mksh | 38 local after readonly stdout: y=0 y=stderr: |
osh | 38 local after readonly [osh stdout] Expected u'', got 'y=0\ny=\n' [osh status] Expected 1, got 0 stdout: y=0 y=stderr: |
dash | 39 unset a[-1] (bf.bash regression) stdout: stderr: |
mksh | 39 unset a[-1] (bf.bash regression) stdout: len=3 last= last=0 1 2 3 42stderr: |
zsh | 39 unset a[-1] (bf.bash regression) stdout: stderr: |
dash | 40 unset a[-1] in sparse array (bf.bash regression) stdout: stderr: |
mksh | 40 unset a[-1] in sparse array (bf.bash regression) stdout: len=3 a=0 2 3 last= second= third= --- len=2 a=0 2 last= second= third=stderr: |
zsh | 40 unset a[-1] in sparse array (bf.bash regression) stdout: stderr: |