#Shell函数返回多个值 test(){ echo 100 #返回100 echo 200 #返回200 } a=$(test) #则得到a="100 200" 转载于:https://www.cnblogs.com/scue/archive/2013/02/11/2909995.html