[New-bugs-announce] [issue30746] Reject environment variable names containing '='

Serhiy Storchaka report at bugs.python.org
Sat Jun 24 15:05:15 EDT 2017


New submission from Serhiy Storchaka:

Environment variable names shouldn't contain the '=' character, because it often is used as a separator between a name and a value. There is an exception -- starting '=' on Windows is used for defining "hidden" environment variables.

Using names containing '=' in environment dict in subprocess is prohibited in issue30730. Proposed PR prohibits names containing '=' in two other cases: in os.putenv() and os.spawn*(). It fixes the part of issue4926.

----------
components: Extension Modules
messages: 296781
nosy: larry, loewis, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Reject environment variable names containing '='
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7

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


More information about the New-bugs-announce mailing list