# 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}