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

From: Eric Lemoine <eric.lemoine_at_gmail.com>
Date: Thu, 19 Oct 2006 17:59:35 +0200
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.
Received on Thu Oct 19 2006 - 16:59:59 BST

Mailing list overview.