[Linux] Shell函数返回多个值

#Shell函数返回多个值
test(){
echo 100 #返回100
echo 200 #返回200
}
a=$(test) #则得到a="100 200"
------------
微博:http://weibo.com/scue
Github:http://github.com/scue
原文地址:https://www.cnblogs.com/scue/p/2909995.html