Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Shebang diff
- X-seq: zsh-workers 24579
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Shebang diff
- Date: Thu, 21 Feb 2008 20:01:13 -0800
- In-reply-to: <20080222025459.GB4595@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <080216113822.ZM17179@xxxxxxxxxxxxxxxxxxxxxx> <20080217162313.5c274cb8@pws-pc> <080217175005.ZM10158@xxxxxxxxxxxxxxxxxxxxxx> <20080222025459.GB4595@xxxxxxxxxxx>
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