Line Numbers of Function Calls
$BASH_LINENO
is an array and contains the line numbers, where functions were called.
Links
Examples
Display execution position :
|
|
Output:
file: /home/user/file.sh
function: a
executed at: 10
BashSupport Pro 是一个 支持 $BASH_LINENO 的 Bash 集成开发工具 – 马上试用!