Message-Id: <4EC3EA5D-6F69-4CD6-89DD-DD103DC1F62A@...1348...> From: Toby Thain In-Reply-To: <201006052125.38352.dave_br@...1278...> Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 6 Jun 2010 08:35:58 +1000 References: <20100604224938.GA19956@...1375...> <4C0AB229.4050307@...1114...> <201006052125.38352.dave_br@...1278...> Subject: Re: [Openvpn-devel] PATCH: remove bashisms from easy-rsa List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit To: Davide Brini Cc: Matthias Andree , openvpn-devel@lists.sourceforge.net 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