I just customized my .bashrc to include the exit status of the last command, so I get fancy prompts like larsmans@host:~$and I no longer have to re-run commands to see their exit status because I ran some other command in between. This uses $? to determine the exit status. However, I noticed that when a command is backgrounded with Ctrl+Z, the shell also sets $?, so I keep seeing[1]+  Stopped                 vim larsmans@host:~$ echo $?148Is this 148 a magic pseudo-exit status that I should check for?
Exit status ($?) of 148 upon Ctrl+Z
bash;shell;exit
Found it just before hitting the ask question button. I looked at the ABS, which suggests this is exit code 128 + signal SIGTSTP (even though no process exited). I then found out I inspect check the exit status usingkill -l $?which reports TSTP, or stop typed at tty, for 148.