When the command echo $? outputs 1, which of the following statements is true?
A. It is the process ID of the echo command.
B. It is the process ID of the current shell.
C. It is the exit value of the command executed immediately before echo.
D. It is the exit value of the echo command.
题解
「$?」保存的值为上次命令运行结果的传回值,所以答案是选项 C。
