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

Re: Shebang diff



On Feb 21,  9:54pm, Clint Adams wrote:
} Subject: Re: Shebang diff
}
} On Sun, Feb 17, 2008 at 05:50:05PM -0800, Bart Schaefer wrote:
} > I'm not concerned with the file permissions; I don't care whether or
} > not they have the execute bit set.  I just don't want the #! removed.
} > Running chmod to "install" the script is one thing, but having to edit
} > the file is another entirely.
} 
} You're invoking $fndir/Misc/sticky-note with a full pathname?

No ... my point was that

cp $^fpath/sticky-note(N) ~/bin
chmod +x ~/bin/sticky-note

is a lot less of a PITA than

cp $^fpath/sticky-note(N) ~/bin
vi ~/bin/sticky-note
O#!/bin/zsh -fiESC:wq
chmod +x ~/bin/sticky-note

especially given that it's non-obvious that "-fi" is necessary in order
for it to work correctly.

It's entirely possible that there's a better place than Functions/Misc/
to put scripts like this, but that place doesn't exist yet in the tree.



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