~ubuntu-branches/ubuntu/trusty/bash/trusty-security

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[@]^^?}"