Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Shebang diff



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).



Messages sorted by: Reverse Date, Date, Thread, Author