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


Groups > comp.lang.python > #39902

Re: Shebang line on Windows?

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 <drobinow@gmail.com>
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 <kg8cm0$flo$1@news.albasani.net> <CAKJDb-NW2ut0=6n_TD3VC=5pR5rc+kOfHANtjVxKB6EtFwtbNw@mail.gmail.com> <mailman.2294.1361558483.2939.python-list@python.org> <b94bb7c4-14c2-4783-b13d-8a77e8dd6f32@r8g2000vbj.googlegroups.com> <DCD75728F460F14586086EA606E8308282821A1D@ACEVXCHMBX1001.ADVENTISTCORP.NET> <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 <drobinow@gmail.com>
To "D'Arcy J.M. Cain" <darcy@druid.net>
Content-Type text/plain; charset=UTF-8
Cc Michael Torrie <torriem@gmail.com>, 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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2514.1361816351.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Mon, Feb 25, 2013 at 12:29 PM, D'Arcy J.M. Cain <darcy@druid.net> 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Shebang line on Windows? Walter Hurry <walterhurry@lavabit.com> - 2013-02-22 18:16 +0000
  Re: Shebang line on Windows? Dave Angel <davea@davea.name> - 2013-02-22 13:40 -0500
  Re: Shebang line on Windows? Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-02-22 12:40 -0600
    Re: Shebang line on Windows? James Harris <james.harris.1@gmail.com> - 2013-02-22 14:53 -0800
      Re: Shebang line on Windows? MRAB <python@mrabarnett.plus.com> - 2013-02-22 23:21 +0000
      RE: Shebang line on Windows? "Sells, Fred" <fred.sells@adventistcare.org> - 2013-02-25 12:35 +0000
      Re: Shebang line on Windows? Dave Angel <davea@davea.name> - 2013-02-25 08:14 -0500
      Re: Shebang line on Windows? Chris Gonnerman <chris@gonnerman.org> - 2013-02-25 07:28 -0600
      Re: Shebang line on Windows? Chris Angelico <rosuav@gmail.com> - 2013-02-26 00:54 +1100
      Re: Shebang line on Windows? Michael Torrie <torriem@gmail.com> - 2013-02-25 10:18 -0700
        Re: Shebang line on Windows? Anssi Saari <as@sci.fi> - 2013-02-26 16:30 +0200
      Re: Shebang line on Windows? "D'Arcy J.M. Cain" <darcy@druid.net> - 2013-02-25 12:29 -0500
        Re: Shebang line on Windows? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-26 00:52 +0000
          Re: Shebang line on Windows? Michael Torrie <torriem@gmail.com> - 2013-02-25 19:08 -0700
          Re: Shebang line on Windows? Dave Angel <davea@davea.name> - 2013-02-25 21:23 -0500
          Re: Shebang line on Windows? MRAB <python@mrabarnett.plus.com> - 2013-02-26 03:08 +0000
          Re: Shebang line on Windows? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-25 22:44 -0500
      Re: Shebang line on Windows? David Robinow <drobinow@gmail.com> - 2013-02-25 13:19 -0500
      Re: Shebang line on Windows? Michael Torrie <torriem@gmail.com> - 2013-02-25 11:29 -0700
      Re: Shebang line on Windows? Michael Torrie <torriem@gmail.com> - 2013-02-25 11:33 -0700

csiph-web