[Cook] end-of-line question

Matthew Lee mlee at klaxoniqa.com
Mon Sep 23 11:06:10 EST 2002


I'm having some trouble with end-of-line's in cook recipes -- I hope
someone can help!

The cook user guide says that "An escaped end-of-line is totally
ignored." (section 7.1.2).

In one of my cookbooks, I'm printing some debug info in an attempt to
get my recipes right.  I want to limit the column width of my cookbook
to 80 columns.  Here's what I'm doing:

function print Debug1 [rather-long-function-name argument1 argument2]/\
[fromto %%-%2-%3 %1-%2 i586-Linux-avr]/lib\
[rather-long-function-name argument1 argument2].a

The goal of this exercise is to print out the path of a library I want
to link in.  However, spaces are being printed within the path,
corresponding to the line feeds (which should be escaped):

Debug1 funcResult/ i586-Linux/lib funcResult.a


Ideally, it should be:

Debug1 funcResult/i586-Linux/libfuncResult.a


What am I doing wrong??  

I'm using cook version 2.21.D001.  I've confirmed (using a hex editor)
that each line is terminated with only a line feed (0xA) character.


Thanks in advance,

Matt Lee
KlaxonIQA
Sydney, Australia



More information about the Cook-users mailing list