From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25834 invoked from network); 22 Feb 2008 02:54:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) 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.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Feb 2008 02:54:11 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 3319 invoked from network); 22 Feb 2008 02:54:06 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Feb 2008 02:54:06 -0000 Received: (qmail 11455 invoked by alias); 22 Feb 2008 02:54:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24576 Received: (qmail 11439 invoked from network); 22 Feb 2008 02:54:02 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 22 Feb 2008 02:54:02 -0000 Received: from acolyte.scowler.net (acolyte.scowler.net [216.254.112.45]) by bifrost.dotsrc.org (Postfix) with ESMTP id ED6AC8026E0B for ; Fri, 22 Feb 2008 03:53:58 +0100 (CET) Received: by acolyte.scowler.net (Postfix, from userid 1000) id E14935C1A4; Thu, 21 Feb 2008 21:53:52 -0500 (EST) Date: Thu, 21 Feb 2008 21:53:52 -0500 From: Clint Adams To: zsh-workers@sunsite.dk Subject: Re: Shebang diff Message-ID: <20080222025352.GA4595@scowler.net> Mail-Followup-To: zsh-workers@sunsite.dk References: <080216113822.ZM17179@torch.brasslantern.com> <20080217162313.5c274cb8@pws-pc> <080216113822.ZM17179@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080217162313.5c274cb8@pws-pc> <080216113822.ZM17179@torch.brasslantern.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Virus-Scanned: ClamAV 0.91.2/5922/Fri Feb 22 03:32:23 2008 on bifrost X-Virus-Status: Clean On Sat, Feb 16, 2008 at 11:38:22AM -0800, Bart Schaefer wrote: > Functions/Misc/sticky-note is explicitly designed to be runnable as a > standalone script. Removing the #! line was IMO wrong. On Sun, Feb 17, 2008 at 04:23:13PM +0000, Peter Stephenson wrote: > Actually, the same is true of calendar_add: it's most useful when > executed from an external programme that's managing called as a backend > to processing calendars in mail. However, Clint's point, which is > reasonable, was that the files in question are being installed into the > function area, not into the path. If we wanted to make proper > arrangements for them to be called directly, we should both install them > into the path and make them executable at that point, rather than rely > on them being executable from where they are. So I think rather than > changing the permissions again, if we're interested in doing something > more with ambivalent scripts/functions it would be better to provide > some utility to fix things. I didn't think this would be controversial, but Index: Functions/Calendar/calendar_add =================================================================== RCS file: /cvsroot/zsh/zsh/Functions/Calendar/calendar_add,v retrieving revision 1.9 diff -u -r1.9 calendar_add --- Functions/Calendar/calendar_add 19 Feb 2008 14:59:53 -0000 1.9 +++ Functions/Calendar/calendar_add 22 Feb 2008 02:49:33 -0000 @@ -1,3 +1,4 @@ +#!/bin/zsh # All arguments are joined with spaces and inserted into the calendar # file at the appropriate point. # Index: Functions/Misc/sticky-note =================================================================== RCS file: /cvsroot/zsh/zsh/Functions/Misc/sticky-note,v retrieving revision 1.3 diff -u -r1.3 sticky-note --- Functions/Misc/sticky-note 7 Feb 2008 02:11:00 -0000 1.3 +++ Functions/Misc/sticky-note 22 Feb 2008 02:49:33 -0000 @@ -1,3 +1,4 @@ +#!/bin/zsh -fi # A little zsh sticky-note ("post-it") application. Sticky notes are # stored in the file named by the STICKYFILE variable (defaults to # $HOME/.zsticky). The number of notes stored is STICKYSIZE (1000).