标签:
#!/bin/bash date_count=0; hello () { echo "hello"; } date () { echo date_count:$date_count let date_count+=1 if [ $date_count -gt 5 ]; then return fi ############################ # 以下几种写法,结果不同 # exec date # exec `date` `date` # date # echo `date` # command date ############################ echo fun date end:$date_count } date hello date date date date
标签:
原文地址:http://www.cnblogs.com/zqb-all/p/5839795.html