Skip to content
Kenichi Kamiya edited this page Sep 3, 2024 · 1 revision

Shell

How to inspect implementation of shell functions?

https://unix.stackexchange.com/questions/59537/display-the-function-body-in-bash

declare -f <cmd>

which only works in zsh, delcare -f works in both zsh and bash.

Clone this wiki locally