For example, in the interactive ksh:

$ false
$    <== Input some white spaces and press <ENTER>
$ echo $?
0    <== Here I want it still to be 1.
$

Bash and zsh both preserves the $? value after empty commands.
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to