1 | #!/usr/bin/env bash |
2 | # |
3 | # Tests that explore parsing corner cases. |
4 | |
5 | #### Length of length of ARGS! |
6 | func() { echo ${##}; } |
7 | func 0 1 2 3 4 5 6 7 8 |
8 | ## stdout: 1 |
9 | |
10 | #### Length of length of ARGS! 2 digit |
11 | func() { echo ${##}; } |
12 | func 0 1 2 3 4 5 6 7 8 9 |
13 | ## stdout: 2 |