1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 19:35:24 +02:00

caller: add page (#15246)

This commit is contained in:
Managor 2024-12-31 06:28:17 +02:00 committed by GitHub
parent 88250e7ec8
commit 40bd110443
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

16
pages/common/caller.md Normal file
View file

@ -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}}`