On Solaris /bin/sh is actually sh rather than bash.
BTW: What's the procedure for actually uploading patches, and get them
reviewed/accepted/rejected?
-- didrik
Index: scripts/gtest-config.in
===================================================================
--- scripts/gtest-config.in (revision 336)
+++ scripts/gtest-config.in (working copy)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# These variables are automatically filled in by the configure script.
name="@PACKAGE_TARNAME@"
Hi
On Solaris /bin/sh is actually sh rather than bash.
BTW: What's the procedure for actually uploading patches, and get them
reviewed/accepted/rejected?
-- didrik
Index: scripts/gtest-config.in
===================================================================
--- scripts/gtest-config.in (revision 336)
+++ scripts/gtest-config.in (working copy)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# These variables are automatically filled in by the configure script.
name="@PACKAGE_TARNAME@"
gtest-svn/scripts/gtest-config: syntax error at line 123: `(' unexpected
test $(($major_version)) -lt $(($min_major_version)) && exit 1
this line
if test "${this_bindir}" = "${this_bindir%${bindir}}"; then
gives "bad substitution"
I don't know how to rewrite the last one to sh
-- didrik
Thanks, it seems that /bin/sh in solaris is really old (backward
compatibility I presume).
Solaris has /usr/xpg4/bin/sh, and of course /bin/bash which both handle the
${parameter%word} substitution.
-- didrik
Hi again.
re: /bin/sh and posix
You should actually not assume that /bin/sh is posix compliant.
There's a posix-shell.m4 out there that you can possibly use if you
need to use posix features.