Skip to content

Commit bb132d1

Browse files
committed
Restore stty and enable echo when using it2ssh without remote python. Issue 11193
1 parent 4ec133f commit bb132d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ssh-helpers/conductor.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ stty_settings=$(command stty -g)
1717
################################################################################
1818

1919
cleanup() {
20+
log cleanup "$stty_settings"
2021
command stty "$stty_settings"
22+
command stty echo
2123
}
2224

2325
die() {
@@ -185,6 +187,7 @@ exec_login_shell() {
185187

186188
log exec_login_shell "$login_shell" with name "$shell_name"
187189

190+
cleanup
188191
# We need to pass the first argument to the executed program with a leading -
189192
# to make sure the shell executes as a login shell. Note that not all shells
190193
# support exec -a so we use the below to try to detect such shells

0 commit comments

Comments
 (0)