Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #77401 > unrolled thread

Re: subprocess module usage

Started byChris Angelico <rosuav@gmail.com>
First post2014-09-01 18:59 +1000
Last post2014-09-01 18:59 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: subprocess module usage Chris Angelico <rosuav@gmail.com> - 2014-09-01 18:59 +1000

#77401 — Re: subprocess module usage

FromChris Angelico <rosuav@gmail.com>
Date2014-09-01 18:59 +1000
SubjectRe: subprocess module usage
Message-ID<mailman.13687.1409561994.18130.python-list@python.org>
On Mon, Sep 1, 2014 at 6:46 PM, Cameron Simpson <cs@zip.com.au> wrote:
> Not really. If the arguments are coming in from the command line, someone (a
> user, even if that user is the programmer) typed them. Even if not
> malicious, they can still be mistaken. Or just unfortunate.

I'm guessing that what he means is that the example posted here used
sys.argv but his actual code doesn't. It's still important to
*understand* shell=True, but it can be perfectly safe to use it.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web