Hi, when leaving a shell, the return status is that of the last command. This makes sense, especially for scripts. But in an interactive shell, it's sometimes a little surprising. I use konsole as terminal app and it displays the exit status if != 0 when a session is closed. Now when the session was an interactive shell in which the last command failed/has been killed, this is displayed. Is there a way to make an interactive zsh always exit with 0 status unless the shell itself died uncleanly? TIA, -Malte
Attachment:
pgpmrarjMTHEc.pgp
Description: signature