From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18438 invoked from network); 13 Dec 2007 07:54:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Dec 2007 07:54:02 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 91806 invoked from network); 13 Dec 2007 07:53:56 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Dec 2007 07:53:56 -0000 Received: (qmail 7572 invoked by alias); 13 Dec 2007 07:53:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24221 Received: (qmail 7562 invoked from network); 13 Dec 2007 07:53:51 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 13 Dec 2007 07:53:51 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id ACD648058F54 for ; Thu, 13 Dec 2007 08:51:09 +0100 (CET) Received: from smtp20.orange.fr (smtp20.orange.fr [80.12.242.26]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Thu, 13 Dec 2007 08:51:09 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2001.orange.fr (SMTP Server) with ESMTP id 4F1701C00045 for ; Thu, 13 Dec 2007 08:53:49 +0100 (CET) Received: from artesyncp.com (unknown [86.194.14.237]) by mwinf2001.orange.fr (SMTP Server) with ESMTP id EAA2E1C000BF for ; Thu, 13 Dec 2007 08:53:48 +0100 (CET) X-ME-UUID: 20071213075348961.EAA2E1C000BF@mwinf2001.orange.fr Date: Thu, 13 Dec 2007 07:53:48 +0000 From: Stephane Chazelas To: zsh-workers@sunsite.dk Subject: Re: shebang consistency Message-ID: Mail-Followup-To: zsh-workers@sunsite.dk References: <20071212233135.GA458@scowler.net> <071212201339.ZM30779@torch.brasslantern.com> <20071213043806.GA12881@scowler.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071213043806.GA12881@scowler.net> User-Agent: Mutt/1.5.16 (2007-09-19) X-Virus-Scanned: ClamAV using ClamSMTP On Wed, Dec 12, 2007 at 11:38:06PM -0500, Clint Adams wrote: > On Wed, Dec 12, 2007 at 08:13:39PM -0800, Bart Schaefer wrote: > > (Why doesn't s:^#!.*[^ /]zsh:#!/bin/zsh: do the trick? How much shorter > > do you need to get?) > > Probably that out-of-place caret. I wasn't handling the env case, > (and I don't have env in /bin), so I was thinking it would be nice to just > have a single string to match. env seems to consistently be in /usr/bin. I think there are very few exceptions to that accross unices. To make the change only on the first line: sed -e '1!b' -e 's:^#![[:blank:]]*[^[:blank:]]*zsh:#! /bin/zsh:' > > I guess I'd suggest standardizing on "#!/bin/zsh" plus options. > > Works for me. I like: #! /bin/zsh -- better meself, not that it makes a lot of difference, except to the eye and for the double-click-copy-paste or vi's W/E motions. -- Stephane