Estado del código de salida de Bash Último comando
# The special variable $? returns the exit status of the last executed command:
echo $?
javabash
# The special variable $? returns the exit status of the last executed command:
echo $?