projects
/
platform
/
upstream
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bash-4.3 distribution sources and documentation
[platform/upstream/bash.git]
/
tests
/
dollar-at6.sub
1
set -- '';
2
3
recho "${@}" x
4
recho "${@:1}" x
5
6
set -- "${@:1}"
7
echo "$#"
8
9
set -- '' ''
10
11
recho "${@:1}" x
12
recho "${@:1:1}" x
13
14
typeset -a A # ksh93 needs this
15
A=('' '')
16
recho "${A[@]:0}" x
17
18
recho "${A[@]:0:1}" x
19
20
recho "${A[@]:1}" x
21
22
set -- ''
23
24
recho "${@/foo/bar}"
25
recho "${@^^[abcde]}"
26
27
A=( '' )
28
29
recho "${A[@]/foo/bar}"
30
recho "${A[@],,[abcde]}"