mobile-shell/mosh

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

Open

#1010 aperta il 2 ott 2018

Vedi su GitHub
 (2 commenti) (1 reazione) (0 assegnatari)C++ (737 fork)batch import
docsfeaturegood first issue

Metriche repository

Star
 (12.063 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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?

Guida contributor