On Thu, 2007-08-23 at 14:17 +0100, Roy Marples wrote:
> On Thu, 2007-08-23 at 13:33 +0100, Ed W wrote:
> > > Regarding init scripts.
> > > Init scripts should now be strictly bourne or POSIX shell. ie, no
> > > bashisms. bash init scripts will work, but ONLY if /bin/sh is bash.
> > > Shells as /bin/sh that I've tested and found to be working are
> > > bash
> > > dash
> > > busybox
> > > zsh
> > > FreeBSD sh
> > >
> > > Also, as there's no bashisms, that also means no bash arrays. 
> > 
> > 
> > I presume that this is hitting the /etc/init.d/util-vserver startup scripts
> > 
> > /usr/lib/util-vserver/functions: line 778: `pkgmgmt.guessStyle': not a 
> > valid identifier
> > 
> > Where to log a bug?  What's the simplest way to temporarily workaround this?
> 
> Log a bug at http://bugs.gentoo.org
> The easiest fix is to change the . to _ in the function names.

The util-vserver scripts are very bashish using arrays and every
function is declared as:

function funcname() 
{
        ...
}

Those needs to be redeclared as:

funcname() {
        ...
}

I mentioned to the vserver list that i was interested to convert the
scripts to POSIX. First he said that he was not against it until he
realized he could no longer use arrays.

http://www.paul.sladen.org/vserver/archives/200708/0025.html

Does anyone have any suggestion to do dynamic variables cleanly without
using arrays?

Natanael Copa

> 
> Thanks
> 
> Roy
> 



-- 
[EMAIL PROTECTED] mailing list

Reply via email to