source: trunk/essentials/app-shells/bash/tests/dollar-at1.sub

Last change on this file was 3228, checked in by bird, 18 years ago

bash 3.1

File size: 287 bytes
Line 
1echo_argc()
2{
3 echo $#
4}
5
6a()
7{
8 shift
9 echo_argc "$@"
10 echo_argc ${1:+"$@"}
11 echo_argc "${1:+$@}"
12 echo_argc 1 2 3
13}
14
15b()
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
27a "X" foo bar hoge
28
29b "X" foo bar hoge
Note: See TracBrowser for help on using the repository browser.