[Cook] Problem with cookbook

Fredrick Paul Eisele phreed at netarx.com
Fri Jun 27 04:29:23 EST 2003


Prabhat Gupta wrote:

> Hi,
>
> I am new to cook. I have attached a cook book with this email.
>
> There is an echo statement in the cookbook after collecting all the 
> object files.
>
> echo TESTING TESTING TESTING TESTING TESTING TESTING;
>
> When I run the cook, the echo statement executes twice. Why it is so??
>
>
> Best regards,
>
Given the extemely simple cook book...
---------------
echo outside
[print outsider];

it:
{
  echo inside;
  [print insider];
}
-------------
...running cook with it produces...
--------------

cook -b howto-cook it
/* ./howto-cook.list */
cook: outsider
cook: echo outside
outside
cook: echo inside
inside
cook: insider
--------------
...so you see taht the echo only gets executed one time but before it 
gets run
the statement itself is echoed.
Probably what you want is the [print ...]





More information about the Cook-users mailing list