$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 是一个 支持 $BASH_ARGC 的 Bash 集成开发工具 – 马上试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款