Bash Function: Find Number Of Arguments Passed

Bash Function: Find Number Of Arguments Passed

瀏覽:1097
日期:2025-04-23
H ow do I find out number of arguments passed to my bash function called foo() under Unix like operating systems? Each bash shell function has the following set of shell variables: [a] All function parameters or arguments can be accessed via $1, $2, $3,.....看更多