在 Ash 和 Dash 中显示函数定义

Show function definition in Ash and Dash

在bash中,您可以使用type来显示函数体,如

bash-4.3$ myfunc() { echo $@ ;}
bash-4.3$ type myfunc
myfunc is a function
myfunc () 
{ 
    echo $@
}

如何在 Ash 和 Dash 中显示 shell 函数体?

在 POSIX shell 中不可能,例如破折号。