Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'detect': 0.07; 'option,': 0.09; 'received:internal': 0.09; 'skip:/ 10': 0.09; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'script?': 0.16; 'sudo': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'command': 0.22; 'input': 0.22; 'shell': 0.22; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'specifically': 0.29; 'tim': 0.29; 'received:66': 0.35; 'received:10': 0.37; 'nov': 0.38; 'to:addr :python-list': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.61; 'header:Message-Id:1': 0.63; 'provide': 0.64; 'within': 0.65; '26,': 0.68; '2014,': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:x-sasl-enc:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=mesmtp; bh=r7lCp27hOWhdUnq1YSVIli62IhY=; b=fPw8 6rL6eqg9lCdch6DPnFsfq/c2dyyqhx1SaR9QLraUEZZricoFGukZbo5estf6nMUN X59ncF6xdG8PpcgptJpNumhZVHjxNEZag+HNLwdLd74k6H2mirrjpxnPdSUix69D F2NGCjNiaLeu//rtkPu6FbnB4e5XIVW/OsuCQb0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:in-reply-to :references:subject:date; s=smtpout; bh=r7lCp27hOWhdUnq1YSVIli62 IhY=; b=tMsU8WAVLzaeOdHeLu6JQZvKo6gHH6avURZv99iFkGeKKIg9eWhSFzRb SlW0m7wqDZlWREEe1I338YjqIxIGUe2YgA5rQWnSuTrjDX6PuV0EYk1KX8Vdab3O AoVqvqV53OQ2e++pnWTpKhaRbqP+Rh8nutQGZUSykwbXPSJR+xA= X-Sasl-Enc: WRkrGv2I1R+EWKB562DRRHhP5Ik16wJ+JGjs16u7ArjD 1417014980 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-53201334 In-Reply-To: <5475EB7E.7010802@tundraware.com> References: <54756D5F.4040806@tundraware.com> <5475EB7E.7010802@tundraware.com> Subject: Re: Quotation Ugliness Date: Wed, 26 Nov 2014 10:16:20 -0500 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417014983 news.xs4all.nl 2978 [2001:888:2000:d::a6]:53351 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81583 On Wed, Nov 26, 2014, at 10:02, Tim Daneliuk wrote: > someprog.py "uname && sudo cat /etc/sudoers" > > vs. > > someprog.py 'uname && echo "sudo cat /etc/suoders"' I think it would be better to provide a general way for the user to provide an input script as an option, rather than to specifically detect the use of sudo. What if the command is a shell script that calls sudo within the script?