[xen-tools] Re: hook scripts issue, and patch

Eric Lemoine eric.lemoine at gmail.com
Thu Oct 19 17:59:35 CEST 2006


On 10/19/06, Steve Kemp <steve at steve.org.uk> wrote:
> On Thu, Oct 19, 2006 at 05:20:22PM +0200, Eric Lemoine wrote:
>
> > By default on Ubuntu Edgy, dash is installed, and /bin/sh is a symlink
> > to dash. The xen-tools hook scripts use the keyword "function" for
> > function definitions, and [[ ]] for expression evaluation. These are
> > *not* supported by dash.
>
>
>   Great.  Looks like a good patch, will apply this evening.
>
>   Many thanks.

Steve, I've just realized that my patch doesn't fix everything.
There's yet another thing which isn't supported by dash: the $LINENO
variable.

What do you want to do: make the hook scripts compatible with both
bash and dash, or force the use of bash. My first patch attempts to
make the scripts compatible with both shells, but that might not be
what you want to do given the restrictions brought by dash.





More information about the xen-tools-discuss mailing list