Results for array.test.sh

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

Details on runs that didn't PASS

osh_.py1 "${a[@]}" and "${a[*]}"

[osh_.py stdout] Expected "['1', '2 3', '1 2 3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}" "${a[*]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc1 "${a[@]}" and "${a[*]}"

[osh_.cc stdout] Expected "['1', '2 3', '1 2 3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}" "${a[*]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py2 ${a[@]} and ${a[*]}

[osh_.py stdout] Expected "['1', '2', '3', '1', '2', '3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${a[@]} ${a[*]}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc2 ${a[@]} and ${a[*]}

[osh_.cc stdout] Expected "['1', '2', '3', '1', '2', '3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${a[@]} ${a[*]}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py3 4 ways to interpolate empty array

[osh_.py stdout] Expected "['1', '2', '3', '', '4', '5']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py 1 "${a[@]}" 2 ${a[@]} 3 "${a[*]}" 4 ${a[*]} 5
  ^~~~~~~
[ stdin ]:1: 'argv.py' not found
osh_.cc3 4 ways to interpolate empty array

[osh_.cc stdout] Expected "['1', '2', '3', '', '4', '5']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py 1 "${a[@]}" 2 ${a[@]} 3 "${a[*]}" 4 ${a[*]} 5
  ^~~~~~~
[ stdin ]:1: 'argv.py' not found
osh_.py4 empty array

[osh_.py stdout] Expected '[]\n', got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${empty[@]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc4 empty array

[osh_.cc stdout] Expected '[]\n', got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${empty[@]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py5 Empty array with :-

[osh_.py stdout] Expected "['not', 'one', 'not one']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${empty[@]:-not one} "${empty[@]:-not one}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc5 Empty array with :-

[osh_.cc stdout] Expected "['not', 'one', 'not one']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${empty[@]:-not one} "${empty[@]:-not one}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py6 nounset with empty array (design bug, makes it hard to use arrays)

[osh_.py stdout] Expected '[]\nstatus=0\n', got 'status=127\n'

stdout:
status=127
stderr:
  argv.py "${empty[@]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc6 nounset with empty array (design bug, makes it hard to use arrays)

[osh_.cc stdout] Expected '[]\nstatus=0\n', got 'status=127\n'

stdout:
status=127
stderr:
  argv.py "${empty[@]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.py7 local array

[osh_.py stdout] Expected "['1']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
    argv.py "${a[0]}"
    ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc7 local array

[osh_.cc stdout] Expected "['1']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
    argv.py "${a[0]}"
    ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.py8 Command with with word splitting in array

[osh_.py stdout] Expected "['1 2', '3', '4']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${array[@]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc8 Command with with word splitting in array

[osh_.cc stdout] Expected "['1 2', '3', '4']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.py10 array over multiple lines

[osh_.py stdout] Expected "['1', '2 3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:5: 'argv.py' not found
osh_.cc10 array over multiple lines

[osh_.cc stdout] Expected "['1', '2 3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:5: 'argv.py' not found
osh_.py12 array with empty string

[osh_.py stdout] Expected "['']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${empty[@]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc12 array with empty string

[osh_.cc stdout] Expected "['']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${empty[@]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py13 Retrieve index

[osh_.py stdout] Expected "['2 3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[1]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc13 Retrieve index

[osh_.cc stdout] Expected "['2 3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[1]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py14 Retrieve out of bounds index

[osh_.py stdout] Expected "['']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[3]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc14 Retrieve out of bounds index

[osh_.cc stdout] Expected "['']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[3]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py15 Negative index

[osh_.py stdout] Expected "['2 3', '1', '']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[-1]}" "${a[-2]}" "${a[-5]}"  # last one out of bounds
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc15 Negative index

[osh_.cc stdout] Expected "['2 3', '1', '']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[-1]}" "${a[-2]}" "${a[-5]}"  # last one out of bounds
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py19 Retrieve index that is a variable

[osh_.py stdout] Expected "['2 3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[$i]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc19 Retrieve index that is a variable

[osh_.cc stdout] Expected "['2 3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[$i]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.py20 Retrieve index that is a variable without $

[osh_.py stdout] Expected "['2 3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[i-4]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc20 Retrieve index that is a variable without $

[osh_.cc stdout] Expected "['2 3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[i-4]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.py21 Retrieve index that is a command sub

[osh_.py stdout] Expected "['2 3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[$(echo 1)]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc21 Retrieve index that is a command sub

[osh_.cc stdout] Expected "['2 3']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.py22 Retrieve array indices with ${!a}

[osh_.py stdout] Expected "['0', '1']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${!a[@]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc22 Retrieve array indices with ${!a}

[osh_.cc stdout] Expected "['0', '1']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${!a[@]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py23 Retrieve sparse array indices with ${!a}

[osh_.py stdout] Expected "['99']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${!a[@]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc23 Retrieve sparse array indices with ${!a}

[osh_.cc stdout] Expected "['99']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${!a[@]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.py24 ${!a[1]} is named ref in bash

[osh_.py stdout] Expected "['bar']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${!a[1]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc24 ${!a[1]} is named ref in bash

[osh_.cc stdout] Expected "['bar']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${!a[1]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.py26 All elements unquoted

[osh_.py stdout] Expected "['1', '2', '3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${a[@]}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc26 All elements unquoted

[osh_.cc stdout] Expected "['1', '2', '3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${a[@]}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py27 All elements quoted

[osh_.py stdout] Expected "['1', '2 3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc27 All elements quoted

[osh_.cc stdout] Expected "['1', '2 3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py28 $*

[osh_.py stdout] Expected "['1', '2', '3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${a[*]}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc28 $*

[osh_.cc stdout] Expected "['1', '2', '3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${a[*]}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py29 "$*"

[osh_.py stdout] Expected "['1 2 3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[*]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc29 "$*"

[osh_.cc stdout] Expected "['1 2 3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[*]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py30 Interpolate array into array

[osh_.py stdout] Expected "['0', '1', '2 3', '4 5']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc30 Interpolate array into array

[osh_.cc stdout] Expected "['0', '1', '2 3', '4 5']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.py33 Set element

[osh_.py stdout] Expected "['9', '2 3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc33 Set element

[osh_.cc stdout] Expected "['9', '2 3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.py34 Set element with var ref

[osh_.py stdout] Expected "['9', '2 3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.cc34 Set element with var ref

[osh_.cc stdout] Expected "['9', '2 3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.py35 Set element with array ref

[osh_.py stdout] Expected "['1', '9']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.cc35 Set element with array ref

[osh_.cc stdout] Expected "['1', '9']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.py37 Slice of array with [@]

[osh_.py stdout] Expected "['2', '3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]:1:2}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc37 Slice of array with [@]

[osh_.cc stdout] Expected "['2', '3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]:1:2}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py38 Negative slice begin

[osh_.py stdout] Expected "['2', '3', '4', '5']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]:(-4)}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc38 Negative slice begin

[osh_.cc stdout] Expected "['2', '3', '4', '5']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]:(-4)}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py40 Slice with arithmetic

[osh_.py stdout] Expected "['2', '3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]:i-4:2}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc40 Slice with arithmetic

[osh_.cc stdout] Expected "['2', '3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]:i-4:2}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.py44 glob within array yields separate elements

[osh_.py stdout] Expected "['_tmp/y.Y', '_tmp/yy.Y']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc44 glob within array yields separate elements

[osh_.cc stdout] Expected "['_tmp/y.Y', '_tmp/yy.Y']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.py45 declare array and then append

[osh_.py stdout] Expected "['a', 'b', 'c']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${array[@]}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.cc45 declare array and then append

[osh_.cc stdout] Expected "['a', 'b', 'c']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${array[@]}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh47 Single array with :-

stdout:
['x', '']
stderr:
osh_.py47 Single array with :-

[osh_.py stdout] Expected "['x', '']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${single[@]:-none} x "${single[@]:-none}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc47 Single array with :-

[osh_.cc stdout] Expected "['x', '']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${single[@]:-none} x "${single[@]:-none}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py48 Stripping a whole array unquoted

[osh_.py stdout] Expected "['foo', 'sp', 'ace.h', 'bar']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${files[@]%.c}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc48 Stripping a whole array unquoted

[osh_.cc stdout] Expected "['foo', 'sp', 'ace.h', 'bar']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py ${files[@]%.c}
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py49 Stripping a whole array quoted

[osh_.py stdout] Expected "['foo', 'sp ace.h', 'bar']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${files[@]%.c}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc49 Stripping a whole array quoted

[osh_.cc stdout] Expected "['foo', 'sp ace.h', 'bar']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${files[@]%.c}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py53 Create a "user" array out of the argv array

[osh_.py stdout] Expected "['x y', 'z', 'a b', 'c']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${array1[@]}" "${array2[@]}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.cc53 Create a "user" array out of the argv array

[osh_.cc stdout] Expected "['x y', 'z', 'a b', 'c']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${array1[@]}" "${array2[@]}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.py56 array default

[osh_.py stdout] Expected "['1 2', '3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${undef[@]:-${default[@]}}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.cc56 array default

[osh_.cc stdout] Expected "['1 2', '3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${undef[@]:-${default[@]}}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
osh_.py58 declare -a / local -a is empty array

[osh_.py stdout] Expected "[]\n['x']\n[]\n['x']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${myarray[@]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${myarray[@]}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
    argv.py "${myarray[@]}"
    ^~~~~~~
[ stdin ]:7: 'argv.py' not found
    argv.py "${myarray[@]}"
    ^~~~~~~
[ stdin ]:9: 'argv.py' not found
osh_.cc58 declare -a / local -a is empty array

[osh_.cc stdout] Expected "[]\n['x']\n[]\n['x']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${myarray[@]}"
  ^~~~~~~
[ stdin ]:2: 'argv.py' not found
  argv.py "${myarray[@]}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
    argv.py "${myarray[@]}"
    ^~~~~~~
[ stdin ]:7: 'argv.py' not found
    argv.py "${myarray[@]}"
    ^~~~~~~
[ stdin ]:9: 'argv.py' not found
osh_.py59 Create sparse array

[osh_.py stdout] Expected "len=1\n['1']\nunset=\nlen-of-unset=0\n", got 'len=1\nunset=\nlen-of-unset=0\n'

stdout:
len=1
unset=
len-of-unset=0
stderr:
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.cc59 Create sparse array

[osh_.cc stdout] Expected "len=1\n['1']\nunset=\nlen-of-unset=0\n", got 'len=1\nunset=\nlen-of-unset=0\n'

stdout:
len=1
unset=
len-of-unset=0
stderr:
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.py60 Create sparse array implicitly

[osh_.py stdout] Expected "len=1\n['1']\nunset=\nlen-of-unset=0\n", got 'len=1\nunset=\nlen-of-unset=0\n'

stdout:
len=1
unset=
len-of-unset=0
stderr:
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.cc60 Create sparse array implicitly

[osh_.cc stdout] Expected "len=1\n['1']\nunset=\nlen-of-unset=0\n", got 'len=1\nunset=\nlen-of-unset=0\n'

stdout:
len=1
unset=
len-of-unset=0
stderr:
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:3: 'argv.py' not found
osh_.py61 Append sparse arrays

[osh_.py stdout] Expected "['1', '2', '3']\n['1', '2', '3']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:7: 'argv.py' not found
  argv.py "${a[99]}" "${a[100]}" "${a[101]}"
  ^~~~~~~
[ stdin ]:8: 'argv.py' not found
osh_.cc61 Append sparse arrays

[osh_.cc stdout] Expected "['1', '2', '3']\n['1', '2', '3']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]}"
  ^~~~~~~
[ stdin ]:7: 'argv.py' not found
  argv.py "${a[99]}" "${a[100]}" "${a[101]}"
  ^~~~~~~
[ stdin ]:8: 'argv.py' not found
osh_.py62 Slice of sparse array with [@]

[osh_.py stdout] Expected "['1', '2']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]:15:2}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.cc62 Slice of sparse array with [@]

[osh_.cc stdout] Expected "['1', '2']\n", got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  argv.py "${a[@]:15:2}"
  ^~~~~~~
[ stdin ]:4: 'argv.py' not found