Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers 2

up vote 8 down vote accepted

Run

type caller

and you will see it is a shell built-in. Running

help caller

will show its function, reported as well in bash's manual page. Briefly

Return the context of the current subroutine call.

share|improve this answer
1  
Awesome. Not only did I learn what that command does, I also learn the "type" command. Thanks :) –  user10065 Aug 24 '11 at 14:00
1  
TIL bash has a built-in help command –  nibot Aug 24 '11 at 17:55
    
Which I could upvote twice for teaching not only the answer but the process as well. –  dmckee Aug 24 '11 at 18:36
    
@Muu, @nibot, @dmckee: also type type, type help, help type and help help could be fun to run :) –  enzotib Aug 24 '11 at 18:48
add comment

It's a shell builtin command: man bash (Then search for 'caller')
It can be used to print a stack trace.

share|improve this answer
    
Thanks though I picked enzotib's answer as he also taught me 'type'. Many thanks though :) –  user10065 Aug 24 '11 at 14:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.