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

Re: zsh portable script



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