spec test index / oilshell.org
case | bash | mksh | osh | description |
0 | pass | pass | FAIL | pass array by reference |
details | ||||
1 | pass | BUG | FAIL | pass assoc array by reference |
details | details | |||
2 | pass | BUG | FAIL | pass local array by reference, relying on DYNAMIC SCOPING |
details | details |
4 passed, 0 ok, 0 known unimplemented, 2 known bugs, 3 failed, 0 skipped
osh | 0 pass array by reference [osh stdout] Expected 'zo\n', got '' [osh status] Expected 0, got 1 stdout: stderr: echo "${array[$idx]}" ^~~~~ [ stdin ]:4: fatal: Can't index string 'array' with integer |
mksh | 1 pass assoc array by reference stdout: [monday]=eggsstderr: |
osh | 1 pass assoc array by reference [osh stdout] Expected 'jam\n', got '' [osh status] Expected 0, got 1 stdout: stderr: echo "${array[$idx]}" ^~~~~ [ stdin ]:4: fatal: Can't index string 'array' with integer |
mksh | 2 pass local array by reference, relying on DYNAMIC SCOPING stdout: stderr: _tmp/spec-bin/mksh: <stdin>[7]: syntax error: '(' unexpected |
osh | 2 pass local array by reference, relying on DYNAMIC SCOPING [osh stdout] Expected 'zo\n', got '' [osh status] Expected 0, got 1 stdout: stderr: echo "${array[$idx]}" ^~~~~ [ stdin ]:4: fatal: Can't index string 'array' with integer |