]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/dollar-at-star7.sub
bash-4.4 rc1 release
[thirdparty/bash.git] / tests / dollar-at-star7.sub
1 IFS='' # testing with only empty IFS
2
3 set -- this is a test
4
5 printf '|%s|\n' ${1+"$@"}
6 echo
7 printf '|%s|\n' "${1+$@}"
8 echo
9 printf '|%s|\n' "$@"
10 echo
11
12 printf '|%s|\n' ${1-"$@"}
13 printf '|%s|\n' "${1-$@}"
14
15 echo
16 : ${foo:="$@"}
17 printf '|%s|\n' "$foo"
18
19 unset foo
20 : "${foo:=$@}"
21 printf '|%s|\n' "$foo"
22
23 unset foo
24 printf '|%s|\n' ${foo-"$@"}
25 printf '|%s|\n' "${foo-$@}"