Wade Preston Shearer wrote:
> What does the zero after exit do?
From man bash:
exit [n]
Cause the shell to exit with a status of n. If n is
omitted,
the exit status is that of the last command executed. A
trap on
EXIT is executed before the shell terminates.
-- Walt