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-at-star1.sub
1
# from dan douglas
2
expassign()
3
{
4
typeset -a a
5
a=("$@")
6
typeset var asn
7
8
while IFS= read -r asn; do
9
IFS=: command eval "$asn"
10
printf '%-14s... %s\n' "$asn" "$var"
11
done <<\EOF
12
var=${a[*]}
13
var="${a[*]}"
14
var=$*
15
var="$*"
16
var=${a[@]}
17
var="${a[@]}"
18
var=$@
19
var="$@"
20
EOF
21
}
22
23
expassign one:::two three:::four