@xtccc
        
        2016-11-13T02:10:38.000000Z
        字数 206
        阅读 2057
    
 
Shell
目录
参考 Returning Values from Bash Functions
在shell script中,函数不能直接通过return的形式返回一个值,只能通过以下几种方法来实现返回值的效果 (参考这里):
- echo a string
 - return an exit status, which is a number, not a string
 - share a variable
 
shell 
