1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/caller.md

17 lines
401 B
Markdown
Raw Normal View History

2024-12-31 06:28:17 +02:00
# 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}}`