2 ./array.tests: line 15: syntax error near unexpected token `&'
3 ./array.tests: line 15: `test=(first & second)'
9 declare -a DIRSTACK='()'
10 declare -a a='([0]="abcde" [1]="" [2]="bdef")'
23 bdef hello world test expression
24 ./array.tests: line 74: readonly: `a[5]': not a valid identifier
25 declare -ar a='([1]="" [2]="bdef" [5]="hello world" [6]="test expression")'
27 declare -ar a='([1]="" [2]="bdef" [5]="hello world" [6]="test expression")'
29 readonly -a a='([1]="" [2]="bdef" [5]="hello world" [6]="test expression")'
32 declare -a DIRSTACK='()'
33 declare -ar a='([1]="" [2]="bdef" [5]="hello world" [6]="test expression")'
34 declare -a b='([0]="this" [1]="is" [2]="a" [3]="test" [4]="" [5]="/etc/passwd")'
36 declare -a d='([1]="" [2]="bdef" [5]="hello world" [6]="test" [9]="ninth element")'
37 declare -a e='([0]="test")'
38 declare -a f='([0]="" [1]="bdef" [2]="hello world" [3]="test" [4]="ninth element")'
39 ./array.tests: line 98: a: readonly variable
40 ./array.tests: line 100: b[]: bad array subscript
41 ./array.tests: line 101: b[*]: bad array subscript
42 ./array.tests: line 102: ${b[ ]}: bad substitution
43 ./array.tests: line 104: c[-2]: bad array subscript
44 ./array.tests: line 105: c: bad array subscript
46 ./array.tests: line 107: d[7]: cannot assign list to array member
47 ./array.tests: line 109: []=abcde: bad array subscript
48 ./array.tests: line 109: [*]=last: cannot assign to non-numeric index
49 ./array.tests: line 109: [-65]=negative: bad array subscript
50 declare -a DIRSTACK='()'
51 declare -ar a='([1]="" [2]="bdef" [5]="hello world" [6]="test expression")'
52 declare -a b='([0]="this" [1]="is" [2]="a" [3]="test" [4]="" [5]="/etc/passwd")'
54 declare -a d='([1]="test test")'
55 declare -a f='([0]="" [1]="bdef" [2]="hello world" [3]="test" [4]="ninth element")'
56 ./array.tests: line 117: unset: ps1: not an array variable
57 ./array.tests: line 121: declare: c: cannot destroy array variables in this way
59 this is a test of read using arrays
61 this is a test of arrays
62 declare -a DIRSTACK='()'
63 declare -ar a='([1]="" [2]="bdef" [5]="hello world" [6]="test expression")'
64 declare -a b='([0]="this" [1]="is" [2]="a" [3]="test" [4]="" [5]="/etc/passwd")'
66 declare -a d='([1]="test test")'
67 declare -a f='([0]="" [1]="bdef" [2]="hello world" [3]="test" [4]="ninth element")'
68 declare -a rv='([0]="this" [1]="is" [2]="a" [3]="test" [4]="of" [5]="read" [6]="using" [7]="arrays")'
87 /bin /usr/bin /usr/ucb /usr/local/bin . /sbin /usr/sbin
88 bin bin ucb bin . sbin sbin
96 \bin \usr/bin \usr/ucb \usr/local/bin . \sbin \usr/sbin
97 \bin \usr\bin \usr\ucb \usr\local\bin . \sbin \usr\sbin
98 \bin \usr\bin \usr\ucb \usr\local\bin . \sbin \usr\sbin
109 value = new1 new2 new3
110 ./array.tests: line 237: narray: unbound variable
113 for case if then else
118 ./array.tests: line 277: syntax error near unexpected token `<>'
119 ./array.tests: line 277: `metas=( <> < > ! )'
120 ./array.tests: line 278: syntax error near unexpected token `<>'
121 ./array.tests: line 278: `metas=( [1]=<> [2]=< [3]=> [4]=! )'
124 abc case if then else 5
125 abc case if then else 5