Special Parameters之一

来源:互联网 发布:windows窗体应用程序 编辑:程序博客网 时间:2024/06/07 11:24
if [ $? != 0 ]; then      HOST_ARCH=x86      log "HOST_ARCH=$HOST_ARCH (32-bit userland detected)"    fi


The shell treats several parameters specially. These parameters may only be referenced; assignment to them is not allowed.

?

Expands to the exit status of the most recently executed foreground pipeline.


pipeline is a sequence of simple commands separated by one of the control operators ‘|’ or ‘|&’.

pipeline其实就是command的集合,通过 ‘|’ or ‘|&’将command串成line

0 0
原创粉丝点击