简体   繁体   中英

Show function definition in Ash and Dash

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM