Subject: Re: advanced shell parameter expansion with %% or ##
To: Joerg Sonnenberger <joerg@britannica.bec.de>
From: Ulrich Habel <uli@habel.name>
List: pkgsrc-users
Date: 05/02/2007 08:20:18
--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
> > about %/%% and #/## for parameter expansion? This is already used in
> > some places like mk/checksum/checksum.
> > This implies that eg on Solaris /bin/sh is not sufficient. I do not know
> > about the capabilities of shells on other systems.
>=20
> Solaris /bin/sh is not supported PERIOD
>=20
> E.g. it is known to have segfault with at least some libtool versions,
> it is nowhere near POSIX etc.
true...there are at least some problems with Solaris sh. However most of
the time we just use "sh" for the shell which causes the Solaris user to
fix all the "sh" manually. Wouldn't it be good to test the OS
environment in the bootstrap of pkgsrc?
mk/bulk/do-sandbox-build
is another example.
Uli
--zhXaljGHf11kAtnf
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGOC2iKLusNOvI6a4RAj2PAJ9XvfkH/LVYVYy9cy0/c0veG2VQVACgm8aa
8fg4TL4ct3qNpI68I5mzULU=
=4Yy9
-----END PGP SIGNATURE-----
--zhXaljGHf11kAtnf--