subprocess.Popen doesn't properly escape < or > for windows batch files #133545
Labels
OS-windows
stdlib
Python modules in the Lib dir
topic-subprocess
Subprocess issues.
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
subprocess.Popen doesn't properly escape
<
or>
for windows batch filesexample.bat
example.py
Error
Adding a space causes it to be correctly escaped:
CPython versions tested on:
3.13
Operating systems tested on:
Windows
Linked PRs
&<>^|
on Windows #134544The text was updated successfully, but these errors were encountered: