https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121943
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- https://stackoverflow.com/questions/59637158/unable-to-use-expect-to-interact-with-windows-executable-from-wsl So it looks like some part of windows decides to send out the sequence to terminals even fake ones. You are going to have to figure out how to disable that in general because otherwise all of GCC testsuite will fail. Even dejagnu testsuite will fail due to that.
