Files
bash/tests/dollar-star9.sub
T
2017-04-03 10:31:01 -04:00

17 lines
310 B
Plaintext

set -- 1 2
IFS=
a=$* b=${*}
c=${*/} d=${*#} e=${*%} f=${*:1}
printf '<%s>' "$a" "$b" "$c" "$d" "$e" "$f"; echo
unset a b c d e f
: ${a=$*} ${b=${*}} ${c=${*/}}
: ${d=${*#}} ${e=${*%}} ${f=${*:1}}
printf '<%s>' "$a" "$b" "$c" "$d" "$e" "$f" ; echo
unset f g
f=${*,,} g=${*@Q}
printf '<%s>' "$f" "$g" ; echo