[Python-3000] os.popen versus subprocess.Popen
Oleg Broytmann
phd at phd.pp.ru
Tue Apr 22 21:47:44 CEST 2008
On Tue, Apr 22, 2008 at 01:39:11PM -0600, Andrew McNabb wrote:
> "cat %s" % filename
>
> then your program would break if filename contained spaces.
It'd break even worse if the filename contains ';' or any other
command-separated character (&&, ||, etc.)
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-3000
mailing list