Sample Header Ad - 728x90

Difference between `exit;` and `exit $?;`

3 votes
3 answers
7523 views
Is there any difference between these two commands: exec "$(dirname "$0")/suman-shell"; exit $?; and exec "$(dirname "$0")/suman-shell"; exit; is the $? redundant in the first case?
Asked by Alexander Mills (10734 rep)
Nov 8, 2017, 04:27 PM
Last activity: Jan 21, 2024, 02:21 PM