-1
sshをデバッグすると、 "logout"の戻り値は前のコマンドになります。たとえば、"logout"の戻り値は前のコマンドの戻り値です
[server1 ~] $ ssh [email protected]
/* login server2 from server1 */
[[email protected] ~]# it's an bad command
-bash: it: command not found
[[email protected] ~]# echo $?
127
/* the return value is 127 */
[[email protected] ~]# it's an bad command
-bash: it: command not found
[[email protected] ~]# logout
Connection to server1 closed.
[server1 ~ ]$ echo $?
127
/* the return value is 127 too */
ログアウトの戻り値がこのように設定されている理由を教えていただけますか?
コードに4つの空白文字を付加します。 [edit-help](http://stackoverflow.com/editing-help)を見てください。 – Cyrus