Subject: Re: advanced shell parameter expansion with %% or ##
To: None <tech-pkg@NetBSD.org>
From: David Laight <david@l8s.co.uk>
List: tech-pkg
Date: 04/30/2007 16:40:41
On Mon, Apr 30, 2007 at 04:26:35PM +0200, Klaus Heinz wrote:
> Hi,
>
> I suppose we can rely on the fact that the shell used for pkgsrc knows
> 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.
I think that there also are other reasons why a real bourne shell [1]
won't run the scripts, and that, on solaris, having /usr/xpg4/bin
early in $PATH is needed.
David
[1] I'm sure the first /bin/sh I used applied IFS to the entire input
line, so after IFS=IFS you were in deep mire. So I've no idea what it
was like in the 1970's.
--
David Laight: david@l8s.co.uk