mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-21 12:57:58 +02:00
31 lines
351 B
Plaintext
31 lines
351 B
Plaintext
set -- '';
|
|
|
|
recho "${@}" x
|
|
recho "${@:1}" x
|
|
|
|
set -- "${@:1}"
|
|
echo "$#"
|
|
|
|
set -- '' ''
|
|
|
|
recho "${@:1}" x
|
|
recho "${@:1:1}" x
|
|
|
|
typeset -a A # ksh93 needs this
|
|
A=('' '')
|
|
recho "${A[@]:0}" x
|
|
|
|
recho "${A[@]:0:1}" x
|
|
|
|
recho "${A[@]:1}" x
|
|
|
|
set -- ''
|
|
|
|
recho "${@/foo/bar}"
|
|
recho "${@^^[abcde]}"
|
|
|
|
A=( '' )
|
|
|
|
recho "${A[@]/foo/bar}"
|
|
recho "${A[@],,[abcde]}"
|