I'm running Ubuntu 10.10 with openbox running on top. I noticed today a command called
caller, however there is no man page, it does not respond to any input (or --help) and whereis doesn't find it.
Any idea what it is?
and you will see it is a shell built-in. Running
will show its function, reported as well in bash's manual page. Briefly
If frame number is supplied as a non-negative integer, it displays the line number, subroutine name, and source file corresponding to that position in the current execution call stack.
Without any parameter, caller displays the line number and source filename of the current subroutine call.
Check the following Simple stack trace at Bash Hackers Wiki:
Here is sample of a decent
It's a shell builtin command: