]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/dollar-at-star8.sub
Bash-4.4 patch 19
[thirdparty/bash.git] / tests / dollar-at-star8.sub
1 function f {
2 typeset -a a
3 a=("$@")
4 typeset IFS=,
5 typeset a1="${a[@]} ${a[*]} $@ $* ${@} ${*}"
6 typeset a2=${a[@]}\ ${a[*]}\ $@\ $*\ ${@}\ ${*} a3 a4
7 a3="${a[@]} ${a[*]} $@ $* ${@} ${*}"
8 a4=${a[@]}\ ${a[*]}\ $@\ $*\ ${@}\ ${*}
9 unset -v IFS
10 printf '%s\n' "a1=$a1" "a2=$a2" "a3=$a3" "a4=$a4"
11 }
12
13 echo
14 f a b c