这两个命令有什么区别:
exec "$(dirname "$0")/suman-shell"; exit $?;
和
exec "$(dirname "$0")/suman-shell"; exit;
$?在第一种情况下是多余的吗?
$?
bash shell-script exit exit-status
bash ×1
exit ×1
exit-status ×1
shell-script ×1