Статус кода выхода Bash
# 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 $?