summaryrefslogtreecommitdiff
path: root/tests/assoc4.sub
blob: 1516dc58a2de861b0104415691a0d35f29956c99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
IFS=/
declare -A i

i[0]=fooq
i[1]=
i[2]=barq
i[3]=

recho "${i[*]:0}"
recho "${i[@]:0}"

recho "${i[*]/q/!}"
recho "${i[@]/q/!}"

recho "${i[*]#?}"
recho "${i[@]#?}"

# Need to complete this with case-modifying expansion examples
recho "${i[*]^?}"
recho "${i[@]^?}"
recho "${i[*]^^?}"
recho "${i[@]^^?}"