fix for VAR='name \# foo' [# was parsed as a comment]
authorChristos Zoulas <christos@ucbvax.Berkeley.EDU>
Tue, 24 May 1994 06:46:55 +0000 (22:46 -0800)
committerChristos Zoulas <christos@ucbvax.Berkeley.EDU>
Tue, 24 May 1994 06:46:55 +0000 (22:46 -0800)
SCCS-vsn: usr.bin/make/parse.c 8.4

usr/src/usr.bin/make/parse.c

index 27f86b9..fd012b8 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)parse.c    8.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)parse.c    8.4 (Berkeley) %G%";
 #endif /* not lint */
 
 /*-
 #endif /* not lint */
 
 /*-
@@ -2155,7 +2155,7 @@ test_char:
                break;
            case '#':
                if (!ignComment) {
                break;
            case '#':
                if (!ignComment) {
-                   if (compatMake || (lastc != '\\')) {
+                   if (compatMake && (lastc != '\\')) {
                        /*
                         * If the character is a hash mark and it isn't escaped
                         * (or we're being compatible), the thing is a comment.
                        /*
                         * If the character is a hash mark and it isn't escaped
                         * (or we're being compatible), the thing is a comment.