spec test index / oilshell.org
status | bash-4 | osh | |
pass | 5 | 1 | |
N-I | 0 | 4 | |
total | 5 | 5 | |
case | bash-4 | osh | description |
0 | pass | N-I | declare -i with += |
details | |||
1 | pass | N-I | declare -i with arithmetic inside strings (Nix, issue 864) |
details | |||
2 | pass | pass | append in arith context |
3 | pass | N-I | declare array vs. string: mixing -a +a and () '' |
details | |||
4 | pass | N-I | declare array vs. associative array |
details |
6 passed, 0 OK, 4 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
osh | 0 declare -i with += stdout: [1 2 ] [1 2 ] [x 2 ]stderr: |
osh | 1 declare -i with arithmetic inside strings (Nix, issue 864) stdout: s=1 + 2 item=array[1+1]stderr: |
osh | 3 declare array vs. string: mixing -a +a and () '' stdout: ['', '']stderr: declare +a 'xyz1=1' ^ [ stdin ]:1: 'declare' doesn't accept option +a declare +a 'xyz2=(2 3)' ^ [ stdin ]:2: 'declare' doesn't accept option +a declare -a 'xyz3=4' ^ [ stdin ]:3: 'declare' Got -a but RHS isn't an array declare -a 'xyz4=(5 6)' ^ [ stdin ]:4: 'declare' Got -a but RHS isn't an array |
osh | 4 declare array vs. associative array stdout: ['0'] ['0']stderr: declare -a 'array=([a]=b [c]=d)' ^ [ stdin ]:1: 'declare' Got -a but RHS isn't an array declare -A 'assoc=([a]=b [c]=d)' ^ [ stdin ]:2: 'declare' Got -A but RHS isn't an associative array |