In bash, you can use type
to show the body of a function, as in
bash-4.3$ myfunc() { echo $@ ;}
bash-4.3$ type myfunc
myfunc is a function
myfunc ()
{
echo $@
}
How can I display a shell function body in Ash and Dash?
在破折号等POSIX shell中不可能。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.