[cs631apue] Ask for output of echo $?

Jan Schaumann jschauma at stevens.edu
Sat Dec 12 15:15:40 EST 2015


Yanqiao Zhan <yzhan14 at stevens.edu> wrote:
 
> For the command $?.
> If we have such execute sequence, what should first "echo $?" output, 127
> or 0?

Compare to what other shells do and think what would be logical / match
the user's expectation.

I'd think 0 would be most expected.

-Jan


More information about the cs631apue mailing list