exit n:
0:success
n is optional
then :
$?=n
if there is no n ,$? will remain the previous value.
Parent process use $?.
exit n:
0:success
n is optional
then :
$?=n
if there is no n ,$? will remain the previous value.
Parent process use $?.