I have setup several functions in my .bashrc
file. I would like to just display the actual code of the function and not execute it, to quickly refer to something.
Is there any way, we could see the function definition?
bashfunction
I have setup several functions in my .bashrc
file. I would like to just display the actual code of the function and not execute it, to quickly refer to something.
Is there any way, we could see the function definition?
Best Answer
The
declare
builtin's-f
option does that:I use
type
for that purpose, it is shorter to type ;)