projects
/
external
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
tizen 2.3.1 release
[external/bash.git]
/
tests
/
dollar-star1.sub
1
set -- a b c
2
x=(a b c); IFS='|'
3
4
echo "${*/#/x}"
5
echo "${x[*]/#/x}"
6
7
echo "$*"
8
echo "${x[*]}"
9
10
echo "$@"
11
echo "${x[@]}"
12
13
echo "${@/#/x}"
14
echo "${x[@]/#/x}"
15
16
echo "${*:1:2}"
17
echo "${x[*]:1:2}"
18
19
echo "${@:1:2}"
20
echo "${x[@]:1:2}"
21
22
IFS=$' \t\n'
23
set -- xa xb xc
24
x=(xa xb xc)
25
IFS='|'
26
27
echo "${*#x}"
28
echo "${x[*]#x}"
29
30
echo "$*"
31
echo "${x[*]}"