[New-bugs-announce] [issue35217] REPL history is broken when python is invoked with cmd /c

零欸特 report at bugs.python.org
Mon Nov 12 08:23:21 EST 2018


New submission from 零欸特 <eight04 at 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 <report at bugs.python.org>
<https://bugs.python.org/issue35217>
_______________________________________


More information about the New-bugs-announce mailing list