Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'bash': 0.07; 'parsing': 0.07; 'reason,': 0.07; 'trailing': 0.07; 'subject:Windows': 0.09; 'python': 0.09; 'it;': 0.09; 'ignore': 0.13; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'wrote:': 0.17; 'shell': 0.18; 'patch': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'am,': 0.27; 'wonder': 0.27; "doesn't": 0.28; 'all.': 0.28; 'equivalent.': 0.29; 'problem': 0.33; 'to:addr :python-list': 0.33; 'done': 0.34; 'subject:?': 0.35; 'received:org': 0.36; 'message-id:@gmail.com': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'actually,': 0.84; 'loader.': 0.84; 'angel': 0.93 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Mon, 25 Feb 2013 10:18:44 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Shebang line on Windows? References: <512B63BC.6090600@davea.name> In-Reply-To: <512B63BC.6090600@davea.name> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361812739 news.xs4all.nl 6841 [2001:888:2000:d::a6]:42358 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39898 On 02/25/2013 06:14 AM, Dave Angel wrote: > It's not Python that needs dos2unix, it's bash or equivalent. For some > reason, bash shebang processing still isn't tolerant of a trailing cr on > the line. Python doesn't care. Actually, the shell isn't involved in parsing the shebang line at all. That's actually done in the kernel by the program loader. So it's the kernel that has a problem with it; wonder if Linus would accept a patch to ignore the tailing CR?