type
bash では、次のように関数の本体を表示するために使用できます。
bash-4.3$ myfunc() { echo $@ ;}
bash-4.3$ type myfunc
myfunc is a function
myfunc ()
{
echo $@
}
Ash and Dashでシェル関数本体を表示するにはどうすればよいですか?
type
bash では、次のように関数の本体を表示するために使用できます。
bash-4.3$ myfunc() { echo $@ ;}
bash-4.3$ type myfunc
myfunc is a function
myfunc ()
{
echo $@
}
Ash and Dashでシェル関数本体を表示するにはどうすればよいですか?