shell命令返回值

若前一个命令执行正确,在linux下面会回传一个$?=0的值。

shell 参数
$# 参数个数
$@ "$1" "$2" "$3"
$* "$1c$2c$3"
$0 文件名

猜你喜欢

转载自201606293644.iteye.com/blog/2336908