spec test index / oilshell.org
status | bash | mksh | |
pass | 8 | 6 | |
ok | 0 | 2 | |
N-I | 1 | 0 | |
BUG | 0 | 1 | |
total | 9 | 9 | |
case | bash | mksh | description |
0 | pass | pass | typeset a[3]=4 |
1 | pass | pass | typeset -a a[1]=a a[3]=c |
2 | pass | pass | local a[3]=4 |
3 | N-I | pass | readonly a[7]=8 |
details | |||
4 | pass | BUG | export a[7]=8 |
details | |||
5 | pass | pass | 'builtin' prefix is allowed on assignments |
6 | pass | pass | 'command' prefix is allowed on assignments |
7 | pass | ok | 'builtin' prefix and array is a parse error |
details | |||
8 | pass | ok | 'command' prefix and array is a parse error |
details |
14 passed, 2 OK, 1 not implemented, 1 BUG, 0 failed, 0 timeouts, 0 cases skipped
bash | 3 readonly a[7]=8 stdout: status=1 []stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: readonly: `b[7]': not a valid identifier |
mksh | 4 export a[7]=8 stdout: status=0 ['7', '8'] Nonestderr: |
mksh | 7 'builtin' prefix and array is a parse error stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected |
mksh | 8 'command' prefix and array is a parse error stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected |