Message110380
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 :) |
|
Date |
User |
Action |
Args |
2010-07-15 16:51:41 | r.david.murray | set | recipients:
+ r.david.murray, eric.smith, eric.araujo, brian.curtin, skrah, narnie |
2010-07-15 16:51:41 | r.david.murray | set | messageid: <1279212701.12.0.0128983263498.issue9265@psf.upfronthosting.co.za> |
2010-07-15 16:51:18 | r.david.murray | link | issue9265 messages |
2010-07-15 16:51:06 | r.david.murray | create | |
|