$BASH_ARGC: Number of Parameters

$BASH_ARGC contains the number of arguments for each subroutine on the call stack.

This variable is only available in extended debugging mode.

Examples

Print number of arguments when executed in the Bash debugger
1
echo ${BASH_ARGC[@]}
BashSupport Pro is a Bash IDE with support for $BASH_ARGCtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal