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-at1.sub
1
echo_argc()
2
{
3
echo $#
4
}
5
6
a()
7
{
8
shift
9
echo_argc "$@"
10
echo_argc ${1:+"$@"}
11
echo_argc "${1:+$@}"
12
echo_argc 1 2 3
13
}
14
15
b()
16
{
17
_IFS="$IFS"
18
IFS="$1"
19
shift
20
echo_argc "$@"
21
echo_argc ${1:+"$@"}
22
echo_argc "${1:+$@}"
23
echo_argc 1 2 3
24
IFS="$_IFS"
25
}
26
27
a "X" foo bar hoge
28
29
b "X" foo bar hoge