On 6-Jun-10, at 6:25 AM, Davide Brini wrote:

On Saturday 05 June 2010, David Sommerseth wrote:
On 05/06/10 00:49, Matthias Andree wrote:

Note that some parts of the scripts may be Solaris /bin/sh unfriendly,
for instance, Solaris's sh doesn't support test -e or [ -e. My patch
does not address this.

This makes me very reluctant from accepting the patch, to be very
honest.  I'd rather keep the current bashism which works on all
platforms where bash is available than to apply a patch which will break
the script from working on one of the supported platforms.

I would rather like to see a patch which works safely on all platforms. If 'test -e' or '[ -e' does not work in /bin/sh on some platforms, that
do indeed speak for keeping the bash support - unless there are other
ways how to solve this issue.

I think Solaris should have a POSIX-compatible shell (korn shell, hence supporting test -e) under /usr/xpg4/bin/sh, although for some reason the default /bin/sh is an old bourne shell. People could link /bin/sh to the POSIX
shell, and then the scripts should work fine.

Solaris has shipped with bash for many years (/usr/bin/bash).

--Toby

However, I think it would be sensible, before merging, to actually do that and test the scripts on a real Solaris system to check that they work as expected (unfortunately I don't have access to a Solaris system, otherwise I would do
that myself).

--
D.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Reply via email to