Avoiding shell metacharacters in os.popen

Nick Craig-Wood nick at craig-wood.com
Thu Sep 30 07:30:13 EDT 2004


Michael Hoffman <m.h.3.9.1.without.dots.at.cam.ac.uk at example.com> wrote:
>  Nick Craig-Wood wrote:
> 
> > As I pointed out in my post there isn't an equivalent for
> > os.popen* which doesn't go via the shell (except for undocumented
> > os.popen2).
> 
>  Is it the undocumented nature of it that is unnerving you?

Yes!  If it was documented then it would have to be made to work on
Windows too I gues.

>  I submitted a bug on the documentation more than six months ago but no 
>  one has responded.
> 
>  http://sourceforge.net/tracker/?func=detail&aid=907457&group_id=5470&atid=105470

At least it is in the system.

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list