mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-27 23:53:18 +02:00
17 lines
310 B
Plaintext
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
|