Subject: bug#9249: Does Libtool 2.4 support Solaris 2.8?

From: Jeff Squyres <[email-masked]>
Date: Thu, 4 Aug 2011 15:37:12 -0400

I see lots of references to old versions of Solaris in generated Libtool scripts, but we've recently been told about a problem with the following with Solaris 2.8's sh:

	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% cat ~/trans/basedir.sh

path="../libtool"

echo path____ $path
echo basename ${path##*/}
echo dirname_ ${path%/*}
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% /bin/sh ~/trans/basedir.sh
path____ ../libtool
/export/home/andreask/trans/basedir.sh: bad substitution
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The ${foo##*/} pattern is used in the LT 2.4-generated libtool script (e.g., in http://www.open-mpi.org/software/hwloc/v1.2/downloads/hwloc-1.2.tar.bz2).

Is this a known issue?

-- 
Jeff Squyres
[email-masked]
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/