Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh portable script
- X-seq: zsh-users 15174
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: zsh portable script
- Date: Mon, 12 Jul 2010 18:15:19 +0200
- In-reply-to: <201007121745.20332.joke@xxxxxxxxx>
- 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> <201007121737.21296.joke@xxxxxxxxx> <201007121745.20332.joke@xxxxxxxxx>
On 2010-07-12 17:45:18 +0200, Joke de Buhr wrote:
> sorry, the correct version should be:
>
> #!/bin/sh
>
> if [ -z "$ZSH_VERSION" ]; then
> ## searching PATH for zsh executable
> exec zsh $0 $*
As arguments may contain spaces, this is incorrect. This should be:
exec zsh "$0" ${1+"$@"}
--
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