首页 > 系统服务 > 详细

Learning_the_bash_Shell_Third_Edition 4/n

时间:2021-03-02 10:31:43      阅读:24      评论:0      收藏:0      [点我收藏+]

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.

Learning_the_bash_Shell_Third_Edition 4/n

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!