Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh portable script
- X-seq: zsh-users 15177
- From: Sebastian Stark <seb-zsh@xxxxxxxxxxx>
- To: Vincent Lefevre <vincent@xxxxxxxxxx>
- Subject: Re: zsh portable script
- Date: Mon, 12 Jul 2010 18:22:22 +0200
- Cc: zsh-users@xxxxxxx
- In-reply-to: <20100712161519.GO1499@xxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <1007130241570.5546@smasher> <201007121737.21296.joke@xxxxxxxxx> <201007121745.20332.joke@xxxxxxxxx> <20100712161519.GO1499@xxxxxxxxxxxxxxxxxxx>
Am 12.07.2010 um 18:15 schrieb Vincent Lefevre:
> 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+"$@"}
is this something every POSIX-compatible bourne shell understands?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author