mobile-shell/mosh

Undocumented behavior: mosh drops exit code of command executed on target, returns overall session success instead

Open

#1,010 建立於 2018年10月2日

在 GitHub 查看
 (2 留言) (1 反應) (0 負責人)C++ (12,063 star) (737 fork)batch import
docsfeaturegood first issue

描述

I would expect mosh --local 127.0.0.1 "sh -c 'exit 42'" ; echo $? to exit with code 42 as does ssh, but it exits with 0. Is this behavior intentional?

貢獻者指南

Undocumented behavior: mosh drops exit code of command executed on target, returns overall session success instead · mobile-shell/mosh#1010 | Good First Issue