DragonFly BSD
DragonFly commits List (threaded) for 2005-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/usr.bin/make/tests/variables/t2 expected.stdout test.sh


From: Max Okumoto <okumoto@xxxxxxxx>
Date: Thu, 03 Mar 2005 13:02:26 -0800

Simon 'corecode' Schubert wrote:
On 03.03.2005, at 20:13, Max Okumoto wrote:

okumoto 2005/03/03 11:13:01 PST

DragonFly src repository

  Modified files:
    usr.bin/make/tests/variables/t2 expected.stdout test.sh
  Log:
  My regression test had a bug in it.  Quoting a value in a Makefile
  causes make(1) to treat it as one word.

  APPLE = "AAA AAA AAA"        # one word
  ORANGE = AAA AAA AAA        # three words


I'm sorry? I never noticed that. Is that because of your changes or is it just an effect with sh's parsing?

I always thought that make would parse (well, at least treat as)
FOO=    "POO PAA PEE"
into <"POO>, <PAA>, <PEE">.

maybe i'm completely wrong here
  simon


Nope, it looks like that has been the behavior. I tested this on FreeBSD 4.10 system. It is the behavior of make(1) parsing of values assigned to variables. I was just as surprised.

Hey I am glad other people are reading my commit messages :-)
				Max





[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]