aboutsummaryrefslogtreecommitdiffstats
path: root/tests/array8.sub
blob: 481ccdbcdc831c4c23b80deda40908e321f73b6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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[@]^^?}"