[issue14242] Make subprocess.Popen aware of $SHELL

Dan Colish report at bugs.python.org
Sat Mar 10 01:23:04 CET 2012


New submission from Dan Colish <dcolish at gmail.com>:

The hardcoding of /bin/sh in the Popen _execute_child method can be a point of frustration when so many users are used to their chosen environment shell. The module can easily support the re-use of the defined $SHELL variable. I've attached a patch which gives one way of doing this. Before I get into writing tests for this, I wanted to float the idea of adding this feature.

----------
components: Library (Lib)
files: popen_shell.diff
keywords: patch
messages: 155274
nosy: dcolish
priority: normal
severity: normal
status: open
title: Make subprocess.Popen aware of $SHELL
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file24772/popen_shell.diff

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


More information about the Python-bugs-list mailing list