%% Michael G Schwern <[EMAIL PROTECTED]> writes:

  mgs> On Tue, Nov 26, 2002 at 01:48:03PM +0100, Abigail wrote:

  >> PERLPREFIX=${PREFIX:-/usr}
  >> SITEPREFIX=${PREFIX:-/top}

  >> I've used that long before I heard about bash. 
  >> It's also part of the POSIX 1003.1-2001 standard.

This is wrong.  I'm not exactly sure what you're trying to say here, but
there is no make I know of that accepts exactly that syntax.  That's
_shell_ syntax.  Maybe that's what you meant by part of the
standard... it's certainly syntax that's valid in POSIX shell, and also
in almost all pre-POSIX Bourne shells, but it's not make syntax of any
flavor.

You mean:

  PERLPREFIX =  $${PREFIX:-/usr}
  SITEPREFIX =  $${PREFIX:-/top}
                ^
(note the escaped dollar).  You want the _shell_ to expand this
variable, not make.

  mgs> Perl make understands it, but I can't get that to work in GNU
  mgs> make.  POSIX or not, that kills it. :(

That's because it's an invalid syntax...

  mgs> GNU make claims to conform to "section 6.2 of IEEE Standard
  mgs> 1003.2-1992 (POSIX.2)", not 2001.  Is it in the 1992 standard?
  mgs> Not that it'll make much difference, but at least we can glare
  mgs> disapprovingly at the GNU folks.

We'll glare disapprovingly right back atcha!  :-P :)

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]> HASMAT--HA Software Mthds & Tools
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.

Reply via email to