Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh portable script



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