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 r.david.murray
Recipients brian.curtin, eric.araujo, eric.smith, narnie, r.david.murray, skrah
Date 2010-07-15.16:51:06
SpamBayes Score 3.8977832e-05
Marked as misclassified No
Message-id <1279212701.12.0.0128983263498.issue9265@psf.upfronthosting.co.za>
In-reply-to
Content
Ah, I misread the test the first time.

Well, I'd prefer a test that always did a real test on posix, but I suppose this has to be good enough since there could be systems that Python otherwise supports that *only* have /bin/sh.  Actually I suppose one could create a local symlink to /bin/sh and call through that...but I don't think this issue warrants going to any more effort, so I think the patch is fine as is.

You could argue that /bin/sh is good to have in the list since it makes sure that arg[0] doesn't get changed inappropriately in the default case.  I'd be more comfortable if the test generated a skip message if the only one of the shells that is found is /bin/sh, but I'm not going to insist on it.  (This will be true, for example, on FreeBSD (at least on 6, which is the install I can easily check...maybe you could add /usr/local/bin/bash as one of your candidates?  Most FreeBSDs will end up having that one installed, though not of course all of them).

I vote we don't worry about the csh only case :)
History
Date User Action Args
2010-07-15 16:51:41r.david.murraysetrecipients: + r.david.murray, eric.smith, eric.araujo, brian.curtin, skrah, narnie
2010-07-15 16:51:41r.david.murraysetmessageid: <1279212701.12.0.0128983263498.issue9265@psf.upfronthosting.co.za>
2010-07-15 16:51:18r.david.murraylinkissue9265 messages
2010-07-15 16:51:06r.david.murraycreate