Subject: Re: make and comments
To: None <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
Date: 07/29/2002 16:41:01
>> Just discovered on the automake list that our make doesn't honour escaped
>> comment lines, eg
>> # hello \
>> which one might guess would be possible according to the man page. (Though
>> it does say "In general", so maybe we could add "(not in comment lines)")
depends on how you parse a line. libwrap defines a line as that which
is read in after all trailing backslashes (and subsequent newlines)
have been stripped. a "line" is then checked to see if it is a comment.
>What about continuation lines that look like comments:
> command args \
># more text \
> even more text
>How should that be parsed?
it's tricky. one could argue that a \ should continue a comment.
otoh, one could also legitimately argue that everything after the
comment character should be tossed before parsing the (rest of the)
personally, i'd be happier if i could comment out arbitrary lines from
the other thing \
so that i wouldn't have to muck about too much. i doubt that'll
happen any time soon.
>Or try putting a multi-megabyte file that has no NL characters in
>it through (IIRC) solaris 'grep'. I think it keeps on expanding
>the input buffer until it has a line to process, unfortunately
>coded to be O(n^2) in the length of the line :-(
similar problem. similar absence of a solution.
|-----< "CODE WARRIOR" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."