Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news1.tnib.de!feed.news.tnib.de!news.tnib.de!newsfeed.freenet.ag!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(at': 0.03; 'explicitly': 0.04; 'subject:Windows': 0.09; 'python': 0.09; 'git': 0.09; 'commit': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'newlines': 0.16; 'optionally': 0.16; 'wrote:': 0.17; 'platforms': 0.18; 'windows': 0.19; 'feb': 0.19; 'file.': 0.20; 'work,': 0.22; 'installed': 0.23; 'least': 0.25; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'dos': 0.27; 'strongly': 0.27; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; 'run': 0.28; 'convert': 0.29; '(and': 0.32; 'to:addr:python-list': 0.33; 'recommended': 0.33; 'received:google.com': 0.34; 'received:209.85.220': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'option': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'your': 0.60; 'save': 0.61; '26,': 0.65; '"just': 0.84; '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:content-type; bh=R5fsJ0uiRd7zlOhN6ZcrKT0SniWWZhQ71zLkVhjx21A=; b=WXH0xvAdyBrMi8kDpeOWXF26c9rpstK6DOkW/QhvsMzJWvmCbFvbuEL9qxGZICLUhg A+ff7zuTTXdF+ldYZGrG+fS6pNhQ3WVqFbi9PXW8epTrBmynTSUrt4PSYVnk1gWBgacd qqkH5/v4qjCclPopiLq6HamwHDMqWvm3dK5Y8aDvf18JHRIzfVLo0udPwlyrCTe7UlZX +GIiOwpquSudpWnvo9ArSAqQGNun1DM2YcKgvVsaVkmcSGOLuvHVD3oU02r1tW+03QN7 YP+6A+9i5om4Vo6a/dETGfEAmFHgPRJyXPcrunZC3TWjTH3Hh1coOEeCInQL7InDYrJH 8x6Q== MIME-Version: 1.0 X-Received: by 10.52.67.164 with SMTP id o4mr8531992vdt.42.1361800468638; Mon, 25 Feb 2013 05:54:28 -0800 (PST) In-Reply-To: <512B6715.2010401@gonnerman.org> References: <512B6715.2010401@gonnerman.org> Date: Tue, 26 Feb 2013 00:54:28 +1100 Subject: Re: Shebang line on Windows? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361800471 news.xs4all.nl 6957 [2001:888:2000:d::a6]:53029 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39893 On Tue, Feb 26, 2013 at 12:28 AM, Chris Gonnerman wrote: > On 02/25/2013 06:35 AM, Sells, Fred wrote: > >> When moving from windows to unix you need to run "dos2unix" on any >> programs that use shebang (at least with python 2.6) that is installed on >> some platforms but must be installed on others like CentOs but it is in >> their repository. > > Or edit it in Vim and do > > :se ff=unix > > and then save it. Or manage your files in git and set the core.autocrlf option to always commit with Unix newlines (and you can optionally check files out with DOS newlines, if you wish). Strongly recommended for cross-platform work, as it "just happens" - no need to explicitly convert the file. ChrisA