# Interactive: a command killed by an error inside a group redirection leaves # the prompt usable and stdout back on the terminal. The frames the error # jumped over held the redirection and the variable scope, so a restore that # walks them after the jump reads dead stack. command -v python3 >/dev/null 2>&1 || exit 77 PS1='$ ' ENV='' HISTFILE='' \ python3 "$TESTS/tools/ptydrive.py" "$TSH" -i <<'END' send f() { x=1 let "1/0" 2>/dev/null; }; { f; } >/dev/null\r expect $ send echo survived\r expect survived send echo "x=[$x]"\r expect x=[] send exit\r END