New submission from 零欸特 <eigh...@gmail.com>:

Windows 7 x64
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit 
(AMD64)]

Steps to reproduce:

1. Create a script:
    ```
    from subprocess import run
    run(["cmd.exe", "/c", "python"])
    run(["python"])
    run("python", shell=True)
    ```
2. Run the script.

Actual result:

The script will invoke Python REPL 3 times. The first and the third REPL don't 
save the command history. Pressing up/down arrows would clear the entire line. 
Pressing F7 has no effect.

The second REPL works fine.

Expected result:

Command history should work in all instances.

----------
components: Windows
messages: 329729
nosy: paul.moore, steve.dower, tim.golden, zach.ware, 零欸特
priority: normal
severity: normal
status: open
title: REPL history is broken when python is invoked with cmd /c
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35217>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to