Learning_the_bash_Shell_Third_Edition 4/n

时间:2021-03-02 10:31:43   收藏:0   阅读:29

To define a function, you can use either one of two forms:

function functname{
shell commands}

  


or:

functname ( )
{
shell commands}

  You can also delete a function definition with the command unset -f functname.

You can find out what functions are defined in your login session by typing declare -f.

原文:https://www.cnblogs.com/winditsway/p/14467351.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!