test: 01-script-$#, 60-function-at.
This commit is contained in:
parent
6852e24dc4
commit
ddc0f58896
2
check.sh
2
check.sh
|
@ -18,6 +18,7 @@ tests='
|
|||
01-script-backslash-space
|
||||
01-script-backslash-twice
|
||||
01-script-$0
|
||||
01-script-$#
|
||||
01-script-$@
|
||||
01-script-shift
|
||||
|
||||
|
@ -100,6 +101,7 @@ tests='
|
|||
50-redirect-sed
|
||||
|
||||
60-function
|
||||
60-function-at
|
||||
60-subst
|
||||
|
||||
70-hash
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
echo $#
|
|
@ -0,0 +1 @@
|
|||
4
|
|
@ -0,0 +1,8 @@
|
|||
foo () {
|
||||
echo $#:$@
|
||||
echo 0:$0
|
||||
echo 1:$1
|
||||
echo 2:$2
|
||||
}
|
||||
|
||||
foo -v $@
|
|
@ -0,0 +1,4 @@
|
|||
5:-v -s --long file0 file1
|
||||
0:test/60-function-at.sh
|
||||
1:-v
|
||||
2:-s
|
Loading…
Reference in New Issue