[issue11139] subprocess: Arguments to .bat scripts get interpreted by shell

Arve Knudsen report at bugs.python.org
Mon Feb 7 15:49:37 CET 2011


New submission from Arve Knudsen <arve.knudsen at gmail.com>:

As a regression from Python 2.6, when running .bat scripts on Windows with f.ex. subprocess.call under Python 2.7.1, arguments get interpreted by the shell. This bit me in the way that I could no longer pass arguments containing the character '|' to .bat scripts, something that works fine under Python 2.6.

To see the bug in action, run tst.py in the attached case.zip with Python 2.7.1. The case also demonstrates that the '|' character only gets interpreted when launching cmd scripts, not e.g. python.exe.

----------
components: Library (Lib)
files: case.zip
messages: 128119
nosy: Arve.Knudsen
priority: normal
severity: normal
status: open
title: subprocess: Arguments to .bat scripts get interpreted by shell
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file20711/case.zip

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11139>
_______________________________________


More information about the Python-bugs-list mailing list