Caller is a builtin command that returns the context (localization) of any active subroutine call (a shell function or a script executed with the . or source builtins.
caller [expr]
Without expr, caller displays the line number and source filename of the current subroutine call.
If a non-negative integer is supplied as expr, caller displays:
This extra information may be used, for example, to print a stack trace.