Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: installing executable functions
- X-seq: zsh-workers 27646
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: installing executable functions
- Date: Sun, 31 Jan 2010 19:57:28 +0000
- In-reply-to: <201001300835.14068.arvidjaar@xxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <25809.1264802076@pws-pc> <100129163645.ZM9106@xxxxxxxxxxxxxxxxxxxxxx> <201001300835.14068.arvidjaar@xxxxxxxxx>
On Sat, 30 Jan 2010 08:35:03 +0300
Andrey Borzenkov <arvidjaar@xxxxxxxxx> wrote:
> read -r line < $sdir_top/$file
> case "$line" in
> '#!'* )
> chmod +x $instdir/`echo $file | sed -e 's%^.*/%%'`
> ;;
> esac
This looks pretty good: we already rely on "case" heavily in
configure... I'm a trifle worried about "read -r" in case some perverse
Bourne shell doesn't handle the "-r", and since we don't want spaces or
backslashes etc. I don't think it's necessary... any theories / further
suggestions?
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author