summaryrefslogtreecommitdiffstats
path: root/tests/new-exp14.sub
blob: b8bda8de5ed586863893dfa4538e3bd3c859287f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# test the other uses of the 'K' tranform operator
# the associative array tests are performed separately, since that was the
# original motivation for this feature
foo=string
bar='value with spaces'

set -- 'a b' 'c d' 'e f'

echo ${foo@K}
echo ${bar@K}

echo ${@@K}
echo "${@@K}"

foo=( zero one two three )
echo ${foo[@]@K}

foo=( 'zero z' 'one o' 'two t' 'three t' )
echo ${foo[@]@K}