Subject: Re: standards/17732
To: None <standards-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Rui Paulo <rpaulo@netbsd-pt.org>
List: netbsd-bugs
Date: 05/05/2005 17:16:01
The following reply was made to PR standards/17732; it has been noted by GNATS.
From: Rui Paulo <rpaulo@netbsd-pt.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: standards/17732
Date: Thu, 5 May 2005 18:15:32 +0100
Here's a correction for this problem:
<-- cut here -->
Index: parse.c
===================================================================
RCS file: /cvsroot/src/usr.bin/make/parse.c,v
retrieving revision 1.98
diff -u -r1.98 parse.c
--- parse.c 1 May 2005 01:25:36 -0000 1.98
+++ parse.c 5 May 2005 17:12:41 -0000
@@ -2557,6 +2557,14 @@
*/
do {
c = ParseReadc();
+ /*
+ * If we found a backslash it means that
+ * the comment is being escaped, so we
+ * must ignore the new line that's going to
+ * come next.
+ */
+ if (c == '\\')
+ ParseReadc();
} while ((c != '\n') && (c != EOF));
goto line_read;
} else {
Index: make.1
===================================================================
RCS file: /cvsroot/src/usr.bin/make/make.1,v
retrieving revision 1.106
diff -u -r1.106 make.1
--- make.1 1 May 2005 00:37:10 -0000 1.106
+++ make.1 5 May 2005 17:12:41 -0000
@@ -1245,7 +1245,7 @@
Comments begin with a hash
.Pq Ql \&#
character, anywhere but in a shell
-command line, and continue to the end of the line.
+command line, and continue to the end of a non-escaped line.
.Sh SPECIAL SOURCES (ATTRIBUTES)
.Bl -tag -width .IGNOREx
.It Ic .EXEC
<-- cut here -->