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