[issue12505] python interpreter not handle wildards properly
Sebastian Ramacher
report at bugs.python.org
Wed Jul 6 22:04:07 CEST 2011
Sebastian Ramacher <sebastinas at users.sourceforge.net> added the comment:
That is definitely not python's job. That is the duty of your shell and python should never expand that.
And it would lead to platform specific behavior as one can see with the following script:
import sys
import subprocess
if __name__ == "__main__":
if len(sys.argv) == 1:
subprocess.Popen([sys.executable, __file__, "foo", "*"])
else:
print sys.argv[1:]
With setargv.obj the argument would be expanded on Windows whereas on any other platform it just prints [foo, *].
----------
nosy: +sebastinas
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12505>
_______________________________________
More information about the Python-bugs-list
mailing list