Results for array.test.sh

statusoshosh-cpp
pass 6868
ok 11
total6969
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 Arrays can't be used as env bindings
33pass pass Set element
34pass pass Set element with var ref
35pass pass Set element with array ref
36pass pass Set array item to array
37pass pass Slice of array with [@]
38pass pass Negative slice begin
39pass pass Negative slice length
40pass pass Slice with arithmetic
41pass pass Number of elements
42pass pass Length of an element
43pass pass Iteration
44pass pass glob within array yields separate elements
45pass pass declare array and then append
46pass pass Array syntax in wrong place
47ok ok Single array with :-
detailsdetails
48pass pass Stripping a whole array unquoted
49pass pass Stripping a whole array quoted
50pass pass Multiple subscripts not allowed
51pass pass Length op, index op, then transform op is not allowed
52pass pass ${mystr[@]} and ${mystr[*]} are no-ops
53pass pass ${mystr[@]} and ${mystr[*]} disallowed with strict_array
54pass pass Create a "user" array out of the argv array
55pass pass Tilde expansion within array
56pass pass Brace Expansion within Array
57pass pass array default
58pass pass Singleton Array Copy and Assign. OSH can't index strings with ints
59pass pass declare -a / local -a is empty array
60pass pass Create sparse array
61pass pass Create sparse array implicitly
62pass pass Append sparse arrays
63pass pass Slice of sparse array with [@]
64pass pass Using an array itself as the index on LHS
65pass pass Using an array itself as the index on RHS
66pass pass a[$x$y] on LHS and RHS
67pass pass Dynamic parsing of LHS a[$code]=value
68pass pass Dynamic parsing of RHS ${a[$code]}
136 passed, 2 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh47 Single array with :-

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

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