How to print a function definition in Bash?

EDIT: The best answer isn’t this one, but the other one below.

What this answer used to say is that you can get a function definition in bash using the type builtin, e.g. type gpm. However, using declare as described in the other answer is better in every way.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)