summaryrefslogtreecommitdiffstats
path: root/tests/dollar-at-star8.sub
blob: 7e1b68844daaa53ce39a074d177d3d3d5a8e7030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function f {
   typeset -a a
   a=("$@")
   typeset IFS=,
   typeset a1="${a[@]} ${a[*]} $@ $* ${@} ${*}"
   typeset a2=${a[@]}\ ${a[*]}\ $@\ $*\ ${@}\ ${*} a3 a4
   a3="${a[@]} ${a[*]} $@ $* ${@} ${*}"
   a4=${a[@]}\ ${a[*]}\ $@\ $*\ ${@}\ ${*}
   unset -v IFS
   printf '%s\n' "a1=$a1" "a2=$a2" "a3=$a3" "a4=$a4"
}

echo
f a b c