spec test index / oilshell.org
238 passed, 16 OK, 9 not implemented, 9 BUG, 0 failed, 0 timeouts, 0 cases skipped
mksh | 6 nounset with empty array (design bug, makes it hard to use arrays) stdout: stderr: mksh: <stdin>[3]: empty[@]: parameter not set |
mksh | 7 local array stdout: stderr: mksh: <stdin>[2]: syntax error: '(' unexpected |
mksh | 9 space before ( in array initialization stdout: 1stderr: |
mksh | 11 array with invalid token stdout: stderr: mksh: <stdin>[3]: syntax error: '&' unexpected |
mksh | 15 Negative index stdout: ['', '', '']stderr: |
mksh | 16 Negative index and sparse array stdout: 0 2 3 -1 -2 -3 -4 -5 0 2 3 0 0 2 3 42stderr: |
mksh | 17 Negative index and sparse array stdout: 0 0 1 1 2 2 3 3stderr: |
mksh | 18 Length after unset stdout: len=4 len=4stderr: |
mksh | 24 ${!a[1]} is named ref in bash stdout: ['a[1]']stderr: |
mksh | 25 ${!a} on array stdout: ['a']stderr: |
bash | 31 Exporting array doesn't do anything, not even first element stdout: Nonestderr: |
bash | 32 Arrays can't be used as env bindings stdout: a (b b)stderr: |
mksh | 32 Arrays can't be used as env bindings stdout: stderr: mksh: <stdin>[1]: syntax error: '(' unexpected |
bash | 36 Set array item to array stdout: status=1stderr: bash: line 2: a[0]: cannot assign list to array member |
mksh | 36 Set array item to array stdout: stderr: mksh: <stdin>[2]: set: a[0]: is not an identifier |
mksh | 37 Slice of array with [@] stdout: stderr: mksh: <stdin>[2]: ${a[@]: 1:2}: bad substitution |
mksh | 38 Negative slice begin stdout: stderr: mksh: <stdin>[2]: ${a[@]: (-4)}: bad substitution |
mksh | 40 Slice with arithmetic stdout: stderr: mksh: <stdin>[3]: ${a[@]:i-4:2}: bad substitution |
bash | 46 Array syntax in wrong place stdout: stderr: bash: line 1: syntax error near unexpected token `(' bash: line 1: `ls foo=(1 2)' |
bash | 47 Single array with :- stdout: ['none', 'x', '']stderr: |
mksh | 47 Single array with :- stdout: ['none', 'x', 'none']stderr: |
osh | 47 Single array with :- stdout: ['x', '']stderr: |
osh_ALT | 47 Single array with :- stdout: ['x', '']stderr: |
mksh | 48 Stripping a whole array unquoted stdout: stderr: mksh: <stdin>[2]: ${files[@]%.c}: bad substitution |
mksh | 49 Stripping a whole array quoted stdout: stderr: mksh: <stdin>[2]: ${files[@]%.c}: bad substitution |
bash | 50 Multiple subscripts not allowed stdout: stderr: bash: line 2: ${a[0][0]}: bad substitution |
mksh | 50 Multiple subscripts not allowed stdout: stderr: mksh: <stdin>[2]: ${a[0][0]}: bad substitution |
bash | 51 Length op, index op, then transform op is not allowed stdout: stderr: bash: line 2: ${#a[0]/1/xxx}: bad substitution |
mksh | 51 Length op, index op, then transform op is not allowed stdout: stderr: mksh: <stdin>[2]: ${#a[0]/1/xxx}: bad substitution |
bash | 52 Array subscript not allowed on string stdout: abcstderr: |
mksh | 52 Array subscript not allowed on string stdout: abcstderr: |
bash | 57 Singleton Array Copy and Assign. OSH can't index strings with ints stdout: 4 4 1 1 4 4 1 1stderr: |
mksh | 57 Singleton Array Copy and Assign. OSH can't index strings with ints stdout: 4 4 1 1 4 4 1 1stderr: |
mksh | 62 Slice of sparse array with [@] stdout: stderr: mksh: <stdin>[4]: ${a[@]: 15:2}: bad substitution |