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 skrah
Recipients eric.araujo, eric.smith, narnie, r.david.murray, skrah
Date 2010-07-15.13:16:08
SpamBayes Score 0.0009316236
Marked as misclassified No
Message-id <1279199770.05.0.376652928398.issue9265@psf.upfronthosting.co.za>
In-reply-to
Content
Isn't just the name of the executable wrong? /bin/bash is
executed all right, but the name is set to "/bin/sh".



Index: Lib/subprocess.py
===================================================================
--- Lib/subprocess.py   (revision 82816)
+++ Lib/subprocess.py   (working copy)
@@ -1091,6 +1091,8 @@
 
             if shell:
                 args = ["/bin/sh", "-c"] + args
+                if executable:
+                    args[0] = executable



In general though, I'd prefer to specify another shell by shell="bin/bash".
History
Date User Action Args
2010-07-15 13:16:10skrahsetrecipients: + skrah, eric.smith, eric.araujo, r.david.murray, narnie
2010-07-15 13:16:10skrahsetmessageid: <1279199770.05.0.376652928398.issue9265@psf.upfronthosting.co.za>
2010-07-15 13:16:08skrahlinkissue9265 messages
2010-07-15 13:16:08skrahcreate