mobile-shell/mosh

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

Open

#1 010 ouverte le 2 oct. 2018

Voir sur GitHub
 (2 commentaires) (1 réaction) (0 assignés)C++ (737 forks)batch import
docsfeaturegood first issue

Métriques du dépôt

Stars
 (12 063 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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?

Guide contributeur