[cs631apue] Ask for output of echo $?

Yanqiao Zhan yzhan14 at stevens.edu
Sat Dec 12 12:10:36 EST 2015


Hi Professor,

For the command $?.
If we have such execute sequence, what should first "echo $?" output, 127
or 0?

$ wrongcommand
-bash: wrongcommand: command not found
$ sish
sish$ echo $?

Thank you,
Yanqiao Zhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20151212/f9a317a3/attachment.html>


More information about the cs631apue mailing list