On Wednesday 10 Mar 2010 15:45:32 David Sommerseth wrote:
> On 01/03/10 00:26, Davide Brini wrote:
> > On Sunday 28 February 2010, David Sommerseth wrote:
> >> From: Dan Nelson <dnel...@users.sourceforge.net>
> >>
> >> Many of the scripts in the openvpn source have their shell set to
> >> /bin/bash, but only two use bash features. The attached patch (against
> >> openvpn-2.1_rc9) sets the shell on the rest of the scripts to /bin/sh
> >> for better portability. The only scripts that actually require bash are
> >> contrib/pull-resolv-conf/client.{up,down} ; they use the ${!var}
> >> variable indirection feature.
> >
> > Not only that, they also use arrays, which are not part of standard sh.
> >
> > For a POSIX-sh compliant solution thad does mostly the same thing (and
> > handles multiple DOMAIN options as well, which client.{up,down} doesn't
> > support), I suggest  you look into the Gentoo-provided {up,down}.sh
> > scripts (though they contain some Gentoo-specific parts, but those are
> > easily removed).
> 
> Agreed!  If you have time to look at a patch for it, I'd appreciate
> that.  It will go in as a separate patch, to keep the patch flow as
> simple as possible.

Well, I was actually going to write a patch, but shortly after starting I 
found out that it would end up being essentially the same as Gentoo's scripts.
Would it be worth separately maintaining something that has already been 
written somewhere else?

Note I'm not being argumentative, I'm just trying to understand what pople 
think, what the policy is, and what would be the best thing to do.
It's true that these are just two short scripts, and maintaining them would be 
no big deal anyway.

Thanks!

-- 
D.

Reply via email to