mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-30 17:33:50 +08:00
caller: add page (#15246)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# caller
|
||||
|
||||
> Print function context.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-caller>.
|
||||
|
||||
- Print the line and filename where the current function was called:
|
||||
|
||||
`caller`
|
||||
|
||||
- Print the line, function and filename where the current function was called:
|
||||
|
||||
`caller 0`
|
||||
|
||||
- Print the line, the function name and the filename of a function call `n` frames back:
|
||||
|
||||
`caller {{n}}`
|
||||
Reference in New Issue
Block a user