spec test index / oilshell.org
122 passed, 17 OK, 19 not implemented, 7 BUG, 0 failed, 0 timeouts, 0 cases skipped
dash | 1 Export sets a global variable that persists after export -n stdout: X Xstderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 5: export: Illegal option -n |
mksh | 1 Export sets a global variable that persists after export -n stdout: X Xstderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/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: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: export: Illegal option -n |
mksh | 2 export -n undefined is ignored stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/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: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: export: Illegal option -n |
bash | 3 export -n foo=bar not allowed stdout: status=0 newstderr: |
mksh | 3 export -n foo=bar not allowed stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/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 stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: typeset: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: Syntax error: "(" unexpected |
mksh | 13 can't export array stdout: 1stderr: |
osh | 13 can't export array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Can't export array |
mksh | 14 can't export associative array stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: typeset: -A: unknown option /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: "foo": unexpected '"' |
osh | 14 can't export associative array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Can't export array |
dash | 15 assign to readonly variable stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: foo: is read only |
bash | 15 assign to readonly variable stdout: status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 2: foo: readonly variable |
mksh | 15 assign to readonly variable stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: read-only: foo |
dash | 16 Make an existing local variable readonly stdout: localstderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: eval: x: is read only |
mksh | 16 Make an existing local variable readonly stdout: local globalstderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: read-only: x |
dash | 17 assign to readonly variable - errexit stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: foo: is read only |
mksh | 17 assign to readonly variable - errexit stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: read-only: foo |
dash | 21 Unset readonly variable stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/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 invalid variable name stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: unset: %: bad variable name |
bash | 24 Unset invalid variable name stdout: status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: unset: `%': not a valid identifier |
mksh | 24 Unset invalid variable name stdout: status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: read-only: % |
zsh | 24 Unset invalid variable name stdout: status=0stderr: |
dash | 28 Unset array member stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: Syntax error: "(" unexpected |
zsh | 28 Unset array member stdout: status=0 y z len=3stderr: |
osh | 28 Unset array member stdout: status=2 x y z len=3stderr: unset 'a[1]' ^ [ stdin ]:2: 'unset' got invalid variable name 'a[1]' |
dash | 29 Unset array member with expression stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: Syntax error: "(" unexpected |
zsh | 29 Unset array member with expression stdout: stderr: zsh: no matches found: a[i+1] |
osh | 29 Unset array member with expression stdout: status=2 w x y z len=4stderr: unset 'a[ i - 1 ]' a[i+1] # note: can't have space between a and [ ^ [ stdin ]:3: 'unset' got invalid variable name 'a[ i - 1 ]' |
zsh | 30 Use local twice stdout: foo=bar barstderr: |
dash | 31 Local without variable is still unset! stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 4: foo: parameter not set |
zsh | 31 Local without variable is still unset! stdout: []stderr: |
dash | 32 local after readonly stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: local: y: is read only |
bash | 32 local after readonly stdout: y=stderr: main: line 3: local: y: readonly variable |
mksh | 32 local after readonly stdout: y=0stderr: |