diff options
Diffstat (limited to 'tests/dollar-star8.sub')
-rw-r--r-- | tests/dollar-star8.sub | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/dollar-star8.sub b/tests/dollar-star8.sub new file mode 100644 index 0000000..72ba108 --- /dev/null +++ b/tests/dollar-star8.sub @@ -0,0 +1,21 @@ +IFS= +set "abc" "def ghi" "jkl" + +set ${1+$*} +printf '<%s>\n' "$#" "$@" + +set "abc" "def ghi" "jkl" +set $* +printf '<%s>\n' "$#" "$@" + +printf '<%s>\n' $* ; +printf '<%s>\n' ${q:-$*} +printf '<%s>\n' "${q:-$*}" + +IFS=: +printf '<%s>\n' $* ; +printf '<%s>\n' ${q:-$*} +printf '<%s>\n' "${q:-$*}" + +unset -v IFS +printf '<%s>\n' $* $@ |