Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh portable script
- X-seq: zsh-users 15175
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: zsh portable script
- Date: Mon, 12 Jul 2010 18:17:39 +0200
- In-reply-to: <C8E1056A-02B7-482E-BC04-2A5C5EF9EBA4@xxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <1007130241570.5546@smasher> <C8E1056A-02B7-482E-BC04-2A5C5EF9EBA4@xxxxxxxxxxx>
On 2010-07-12 17:35:34 +0200, Sebastian Stark wrote:
> When I read this I was thinking about it a bit and came to this:
>
> ------------------------------------------------
> #!/bin/sh
>
> if test -z "$ZSH_VERSION"
> then
> exec zsh <"$0"
> fi
This is incorrect. It won't handle the arguments.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author