[issue9265] Incorrect name passed as arg[0] when shell=True and executable specified
Stefan Krah
report at bugs.python.org
Fri Jul 16 15:15:09 CEST 2010
Stefan Krah <stefan-usenet at bytereef.org> added the comment:
Ok, here's a more comprehensive test. Comments:
1) Instead of emulating 'which' one could use find_executable
from distutils.spawn. But this feels wrong.
2) Skip the test if the primary issue cannot be tested.
3) Exercise the test for /bin/sh, if it isn't a symlink. Then
this part will be executed on some systems, e.g. FreeBSD.
4) The check os.path.isfile('/bin/sh') isn't necessary, but good
practice nonetheless.
Should this go into 2.6 and 3.1 as well?
----------
Added file: http://bugs.python.org/file18027/issue9265-2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9265>
_______________________________________
More information about the Python-bugs-list
mailing list