Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: Ralf Wildenhues (Ralf.Wildenhues_at_[hidden])
Date: 2005-08-29 11:30:45

A small patch: On one hand, Bourne shells do not do word splitting after
parameter expansion and command substitution, of stuff on the right hand
side of an assignment. On the other hand, nested quotes within
backquotes are not portable. (This is also documented in the Autoconf

 foo="$bar"; baz="`ls`"
is completely equivalent to
 foo=$bar; baz=`ls`

and this:
 foo="`echo \"bla\"`"
does not work with pdksh in posix mode, but this
 foo=`echo "bla"`
works everywhere.

By the way, between the keywords "case" and "in", word splitting is not
done either.

        * config/ompi_get_version.m4 (OMPI_GET_VERSION): Fix nested

Index: config/ompi_get_version.m4
--- config/ompi_get_version.m4 (Revision 7073)
+++ config/ompi_get_version.m4 (Arbeitskopie)
@@ -58,9 +58,9 @@
     if test "$gv_want_svn" = "1"; then
         if test "$gv_svn_r" = "-1"; then
             if test -d "$srcdir/.svn"; then
- ver="r`svnversion \"$srcdir\"`"
+ ver=r`svnversion "$srcdir"`
- ver="svn`date '+%m%d%Y'`"
+ ver=svn`date '+%m%d%Y'`