-1
當我調試ssh時,我發現「註銷」的返回值是他以前的命令。例如,「註銷」的返回值是他以前命令的返回值
[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 */
誰能告訴我爲什麼退出的返回值是這樣設置的?
用四個空格前綴代碼。請看[編輯幫助](http://stackoverflow.com/editing-help)。 – Cyrus