Hi,

The script shows, after preamble for Debian and Wine versions, what happens on 
typing 'wine python' at the '$' command prompt followed by 'import subprocess' 
at the '>>>' Python command prompt and then 'exit()' at the next '>>>'.

Each statement at a '>>>' is echoed several times while incomplete followed by 
a final echo when the command is completed by pressing the 'Enter' key.  The 
command seems to be processed correctly apart from the highly confusing 
additional echos.

The odd behaviour does not occur with the native Python invoked by typing 
'python3' at the '$' command prompt.

Ideas on fixing this would be helpful.

Thanks,

Roger


Script started on 2026-05-21 19:56:52+01:00 [TERM="xterm-256color" 
TTY="/dev/pts/0" COLUMNS="80" LINES="24"]
[?2004h]0;roger@debian: ~roger@debian:~$ uname -a
[?2004l
Linux debian 6.12.74+deb13+1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 
(2026-03-08) x86_64 GNU/Linux
[?2004h]0;roger@debian: ~roger@debian:~$ wine 
--version
[?2004l
wine-10.0 (Debian 10.0~repack-6)
[?2004h]0;roger@debian: ~roger@debian:~$ wine 
python
[?2004l
[?25lPython 3.14.2 (tags/v3.14.2:df79316, Dec  5 2025, 17:18:21) [MSC v.1944 
64 bit (
AMD64)] on win32
[?25h[?25lType "help", "copyright", "credits" or "license" for more 
information.
[?25h[?25l[?25l[?25h[?25l[?25h
[?25l[?25l[?25h[?25l[?25l[?25h[?25l>>> 
[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>>
 i[?25h[?25l[?25h[?25l
[?25l[?25l>>> [?25h[?25l[?25l>>> i[?
25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>>
 
im[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
25h[?25l[?25l>>> im[?25h[?25l[?25l>>>
 
imp[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>>
 
impo[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l
 imp[?25h[?25l[?25l>>> impo[?25h[?25l[?
25l[?25h[?25l[?25h[?25l>>> 
impor[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
25l>>> impor[?25h[?25l[?25l>>> i
mport[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>>
 import[?25h[?25l
[?25h[?25l
[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>>
 import 
s[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l
[?25h[?25l[?25l>>> import s[?25h[
?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> 
import 
su[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l
?25l[?25l>>> import su[?25h[?25l[?25l[
13D[?25h[?25l>>> import 
sub[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
13D>>> import sub[?25h[?25l[?25l>
>> import 
>> subp[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
>> import subp[?25h[?25l[?25l>>> [1
;34mimport 
subpr[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
;34mimport subpr[?25h[?25l[?25l>>> impor
t 
subpro[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
t subpro[?25h[?25l[?25l>>> import su
bproc[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>>
 import subproce[?25h[?25l
bproc[?25h[?25l[?25l>>> import subproce
[19D[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>>
 import subproces[?25h[?25l[?25h[?25l
[19D[?25h[?25l[?25l>>> import subproces
[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>>
 import subprocess[?25h[?25l[?25h[?25l
[?25h[?25l[?25l>>> import subprocess[?25
h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25h[?25l[?25h
[?25l[?25l[?25h[?25l[?25h
[?25l[?25l[?25h[?25l[?25l[?25h[?25l>>> 
[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>>
 e[?25h[?25l[?25h[?25l
[?25l[?25l>>> [?25h[?25l[?25l>>> e[?
25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>>
 
ex[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l
25h[?25l[?25l>>> ex[?25h[?25l[?25l>>>
 
exi[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>>
 exit[?25h[?25l[?25h[?25l[?25h[?25h[?25l
[?25h[?25l
[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25l>>> 
exit([?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25l[?25h[?25l
[9D[?25h[?25l>>> 
exit()[?25h[?25l[?25h[?25l[?25h[?25h[?25l[?25h[?25l[?25l[?25h[?25l[?25h[?25h[?25l[1
0D[?25h
[?2004h]0;roger@debian: ~roger@debian:~$ exit
[?2004l
exit

Script done on 2026-05-21 19:58:33+01:00 [COMMAND_EXIT_CODE="0"]

Reply via email to