spec test index / oilshell.org
154 passed, 15 OK, 9 not implemented, 11 BUG, 0 failed, 0 timeouts, 0 cases skipped
mksh | 6 nounset with empty array (design bug, makes it hard to use arrays) stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: empty[@]: parameter not set |
mksh | 7 local array stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: syntax error: '(' unexpected |
mksh | 9 space before ( in array initialization stdout: 1stderr: |
mksh | 11 array with invalid token stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: syntax error: '&' unexpected |
mksh | 15 Negative index stdout: ['', '', '']stderr: |
mksh | 21 ${!a[1]} is named ref in bash stdout: ['a[1]']stderr: |
bash | 22 ${!a} on array is disallowed stdout: ['']stderr: |
mksh | 22 ${!a} on array is disallowed stdout: ['a']stderr: |
bash | 28 Exporting array doesn't do anything, not even first element stdout: Nonestderr: |
bash | 29 Arrays can't be used as env bindings stdout: a (b b)stderr: |
mksh | 29 Arrays can't be used as env bindings stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected |
bash | 33 Set array item to array stdout: status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 2: a[0]: cannot assign list to array member |
mksh | 33 Set array item to array stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: set: a[0]: is not an identifier |
mksh | 34 Slice of array with [@] stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: ${a[@]: 1:2}: bad substitution |
mksh | 35 Negative slice begin stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: ${a[@]: (-4)}: bad substitution |
mksh | 37 Slice with arithmetic stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: ${a[@]:i-4:2}: bad substitution |
bash | 43 Array syntax in wrong place stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: syntax error near unexpected token `(' /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: `ls foo=(1 2)' |
bash | 44 Single array with :- stdout: ['none', 'x', '']stderr: |
mksh | 44 Single array with :- stdout: ['none', 'x', 'none']stderr: |
osh | 44 Single array with :- stdout: ['x', '']stderr: |
mksh | 45 Stripping a whole array unquoted stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: ${files[@]%.c}: bad substitution |
mksh | 46 Stripping a whole array quoted stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: ${files[@]%.c}: bad substitution |
bash | 47 Multiple subscripts not allowed stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 2: ${a[0][0]}: bad substitution |
mksh | 47 Multiple subscripts not allowed stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: ${a[0][0]}: bad substitution |
bash | 48 Length op, index op, then transform op is not allowed stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 2: ${#a[0]/1/xxx}: bad substitution |
mksh | 48 Length op, index op, then transform op is not allowed stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: ${#a[0]/1/xxx}: bad substitution |
bash | 49 Array subscript not allowed on string stdout: abcstderr: |
mksh | 49 Array subscript not allowed on string stdout: abcstderr: |
bash | 54 Singleton Array Copy and Assign. OSH can't index strings with ints stdout: 4 4 1 1 4 4 1 1stderr: |
mksh | 54 Singleton Array Copy and Assign. OSH can't index strings with ints stdout: 4 4 1 1 4 4 1 1stderr: |
mksh | 59 Slice of sparse array with [@] stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[4]: ${a[@]: 15:2}: bad substitution |
bash | 60 Using an array itself as the index on LHS stdout: ['42', '99', '42', '99', '']stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shopt: strict-arith: invalid shell option name |
mksh | 60 Using an array itself as the index on LHS stdout: ['42', '99', '42', '99', '']stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |
bash | 61 Using an array itself as the index on RHS stdout: 2stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shopt: strict-arith: invalid shell option name |
mksh | 61 Using an array itself as the index on RHS stdout: 2stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |