From: Christos Zoulas Date: Tue, 24 May 1994 06:46:55 +0000 (-0800) Subject: fix for VAR='name \# foo' [# was parsed as a comment] X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/0a18c2ec53c56345dce040ce090d999aa969e24a?hp=2bb15f6761569a59312edcb138e1d15dbcbc83b8 fix for VAR='name \# foo' [# was parsed as a comment] SCCS-vsn: usr.bin/make/parse.c 8.4 --- diff --git a/usr/src/usr.bin/make/parse.c b/usr/src/usr.bin/make/parse.c index 27f86b919f..fd012b82b9 100644 --- a/usr/src/usr.bin/make/parse.c +++ b/usr/src/usr.bin/make/parse.c @@ -11,7 +11,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) %G%"; +static char sccsid[] = "@(#)parse.c 8.4 (Berkeley) %G%"; #endif /* not lint */ /*- @@ -2155,7 +2155,7 @@ test_char: 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.