Bash-4.3 distribution sources and documentation
This commit is contained in:
parent
4539d736f1
commit
ac50fbac37
497 changed files with 129395 additions and 87598 deletions
30
tests/dollar-at6.sub
Normal file
30
tests/dollar-at6.sub
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
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]}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue