Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'interpreter': 0.04; 'binary': 0.05; 'python': 0.09; '"run': 0.09; 'etc).': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'script,': 0.09; 'sep': 0.09; 'file,': 0.15; 'executable,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'shell"': 0.16; 'saying': 0.18; 'command': 0.24; 'allows': 0.25; '(e.g.': 0.27; 'header:X-Complaints-To:1': 0.28; 'run': 0.28; '+0100,': 0.29; 'directly,': 0.29; 'file': 0.32; 'url:home': 0.33; 'to:addr:python-list': 0.33; "won't": 0.35; 'received:org': 0.36; 'subject:with': 0.36; 'charset:us-ascii': 0.36; 'rather': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'subject:Moving': 0.84; 'subject:content': 0.84; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Moving folders with content Date: Sun, 16 Sep 2012 14:53:02 -0400 Organization: > Bestiaria Support Staff < References: <5055ac92$0$6940$e4fe514c@news2.news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-21-126.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347821593 news.xs4all.nl 6873 [2001:888:2000:d::a6]:54447 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29342 On Sun, 16 Sep 2012 15:31:07 +0100, Nobody declaimed the following in gmane.comp.python.general: > difference is that shell=False requires the "executable" to actually be a > binary executable, while shell=True allows it to be some other type of > file (e.g. a batch file, Python script, etc). While it is true that "programs" that require an interpreter to be present won't run directly, the main difference is that "shell=True" allows for use of the built-ins -- commands like DIR, COPY, DEL... One can always preface the others with the interpreter program name (granted, in the case of "BAT" files, that interpreter IS the command shell, so it if rather perverse to say "run this file in this shell" while saying "don't use a shell" ). -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/