test: 01-script-$#, 60-function-at.

This commit is contained in:
Jan Nieuwenhuizen 2018-12-01 09:38:09 +01:00
parent 6852e24dc4
commit ddc0f58896
5 changed files with 16 additions and 0 deletions

View File

@ -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

1
test/01-script-$#.sh Normal file
View File

@ -0,0 +1 @@
echo $#

1
test/01-script-$#.stdout Normal file
View File

@ -0,0 +1 @@
4

8
test/60-function-at.sh Normal file
View File

@ -0,0 +1,8 @@
foo () {
echo $#:$@
echo 0:$0
echo 1:$1
echo 2:$2
}
foo -v $@

View File

@ -0,0 +1,4 @@
5:-v -s --long file0 file1
0:test/60-function-at.sh
1:-v
2:-s