Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Windows': 0.09; 'python': 0.09; 'beginners': 0.09; 'solution,': 0.09; 'cc:addr :python-list': 0.10; 'file,': 0.15; 'mon,': 0.16; 'wrote:': 0.17; 'handles': 0.18; 'windows': 0.19; 'feb': 0.19; 'ideal': 0.20; 'addition,': 0.21; 'fine,': 0.22; 'strip': 0.22; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'linux': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'cc:addr:gmail.com': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'fine': 0.28; 'run': 0.28; 'obscure': 0.29; "i'm": 0.29; 'mode': 0.30; 'error': 0.30; 'code': 0.31; 'file': 0.32; 'ubuntu': 0.33; 'problem': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'text': 0.34; 'wrong': 0.34; 'done': 0.34; 'especially': 0.35; 'pm,': 0.35; 'subject:?': 0.35; "won't": 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'test': 0.36; 'should': 0.36; 'why': 0.37; 'moment': 0.37; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'easy': 0.60; 'first': 0.61; 'experience.': 0.65; 'afraid': 0.66; '2013': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=tFbHxhY+yiE4I/rFhee+kntvv7DyiB2LdhNn1EU/78I=; b=A4ObLguzf4Oq+5cSX3KtYzq4sfRvhF3QXSIUdAlRV1CRxuZJnkE9/BWmR0OfRdyhAG PMUw3yXXR02FebsWUuNK4CJWWAknuU3pGaGv1dmw+fZoN/LY9IDWYTHvqVMx+RXoOM7O bLCI6TBv+Tbcd4MF/quIsqHm61x/J/1hiJz/yLTFOlD+nGJoWuJVkh/VJcEhjHl7ip+z JPNNaUuZkZ+dZz1kqC3IcVzoAB7+Jci+YYZ99Dr5MlxgshtbdK/KdjyBq1zDjqjOOwQj 5z8xxEQRiFlXqFqU3J171Kwrfa5QER4NCwaB3Upt8C9x5LC88Yy6yX8YCsErD1Wpt2rx mI6w== MIME-Version: 1.0 X-Received: by 10.60.10.3 with SMTP id e3mr8609461oeb.51.1361816342731; Mon, 25 Feb 2013 10:19:02 -0800 (PST) In-Reply-To: <20130225122958.08dbf549@imp> References: <512B63BC.6090600@davea.name> <512B9CF4.3070604@gmail.com> <20130225122958.08dbf549@imp> Date: Mon, 25 Feb 2013 13:19:02 -0500 Subject: Re: Shebang line on Windows? From: David Robinow To: "D'Arcy J.M. Cain" Content-Type: text/plain; charset=UTF-8 Cc: Michael Torrie , python-list@python.org 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361816352 news.xs4all.nl 6979 [2001:888:2000:d::a6]:41953 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39902 On Mon, Feb 25, 2013 at 12:29 PM, D'Arcy J.M. Cain wrote: > ... > I don't run Windows myself so I can't test it but doesn't Python on > Windows work fine with Unix style EOL? So why not strip out the CR and > run the same file everywhere? That's the ideal solution, but so many Windows tools default to text mode that it's easy to create the wrong type file, especially for beginners who are moving there code to Linux for the first time. I've done it myself, even though I should no better by now. In addition, the error message is rather obscure (if I remember right - I'm not near my Ubuntu at the moment and Cygwin handles this fine, as it should) I'm afraid this problem won't go away. People are just going to have to learn from experience.