Results for array.test.sh

statusoshosh-cpp
pass 6969
FAIL 11
total7070
caseoshosh-cppdescription
0pass pass SETUP
1pass pass "${a[@]}" and "${a[*]}"
2pass pass ${a[@]} and ${a[*]}
3pass pass 4 ways to interpolate empty array
4pass pass empty array
5pass pass Empty array with :-
6pass pass nounset / set -u with empty array (bug in bash 4.3, fixed in 4.4)
7pass pass local array
8pass pass Command with with word splitting in array
9pass pass space before ( in array initialization
10pass pass array over multiple lines
11pass pass array with invalid token
12pass pass array with empty string
13pass pass Retrieve index
14pass pass Retrieve out of bounds index
15pass pass Negative index
16pass pass Negative index and sparse array
17pass pass Negative index and sparse array
18pass pass Length after unset
19pass pass Retrieve index that is a variable
20pass pass Retrieve index that is a variable without $
21pass pass Retrieve index that is a command sub
22pass pass Retrieve array indices with ${!a}
23pass pass Retrieve sparse array indices with ${!a}
24pass pass ${!a[1]} is named ref in bash
25pass pass ${!a} on array
26pass pass All elements unquoted
27pass pass All elements quoted
28pass pass $*
29pass pass "$*"
30pass pass Interpolate array into array
31pass pass Exporting array doesn't do anything, not even first element
32pass pass strict_array prevents exporting array
33pass pass Arrays can't be used as env bindings
34pass pass Set element
35pass pass Set element with var ref
36pass pass Set element with array ref
37pass pass Set array item to array
38pass pass Slice of array with [@]
39pass pass Negative slice begin
40pass pass Negative slice length
41pass pass Slice with arithmetic
42pass pass Number of elements
43pass pass Length of an element
44pass pass Iteration
45pass pass glob within array yields separate elements
46pass pass declare array and then append
47pass pass Array syntax in wrong place
48FAIL FAIL Single array with :-
detailsdetails
49pass pass Stripping a whole array unquoted
50pass pass Stripping a whole array quoted
51pass pass Multiple subscripts not allowed
52pass pass Length op, index op, then transform op is not allowed
53pass pass ${mystr[@]} and ${mystr[*]} are no-ops
54pass pass ${mystr[@]} and ${mystr[*]} disallowed with strict_array
55pass pass Create a "user" array out of the argv array
56pass pass Tilde expansion within array
57pass pass Brace Expansion within Array
58pass pass array default
59pass pass Singleton Array Copy and Assign. OSH can't index strings with ints
60pass pass declare -a / local -a is empty array
61pass pass Create sparse array
62pass pass Create sparse array implicitly
63pass pass Append sparse arrays
64pass pass Slice of sparse array with [@]
65pass pass Using an array itself as the index on LHS
66pass pass Using an array itself as the index on RHS
67pass pass a[$x$y] on LHS and RHS
68pass pass Dynamic parsing of LHS a[$code]=value
69pass pass Dynamic parsing of RHS ${a[$code]}
138 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh48 Single array with :-

[osh stdout] Expected "['none', 'x', 'none']\n", got "['x', '']\n"

stdout:
['x', '']
stderr:
osh-cpp48 Single array with :-

[osh-cpp stdout] Expected "['none', 'x', 'none']\n", got "['x', '']\n"

stdout:
['x', '']
stderr: