This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jan Studený
Recipients Jan Studený
Date 2015-08-23.21:47:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440366462.7.0.365898747019.issue24919@psf.upfronthosting.co.za>
In-reply-to
Content
According to POSIX specification the pathname of user shell is stored in SHELL (environmental variable, see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08) so I think that is good idea to use that pathname instead of hardcoded one.
Change is only in one line of subprocess package to use SHELL environmental variable and use hardcoded shell pathname as fallback.

lines 1431-1433
```
            if shell:
                args = ["/bin/sh", "-c"] + args
                if executable:
```

to

```
            if shell:
                args = [os.environ.get("SHELL","/bin/sh"), "-c"] + args
                if executable:
```
History
Date User Action Args
2015-08-23 21:47:42Jan Studenýsetrecipients: + Jan Studený
2015-08-23 21:47:42Jan Studenýsetmessageid: <1440366462.7.0.365898747019.issue24919@psf.upfronthosting.co.za>
2015-08-23 21:47:42Jan Studenýlinkissue24919 messages
2015-08-23 21:47:42Jan Studenýcreate