Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make undo eating the trailing backslash now that the...



details:   https://anonhg.NetBSD.org/src/rev/923e869a3c1c
branches:  trunk
changeset: 802032:923e869a3c1c
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Aug 29 09:27:43 2014 +0000

description:
undo eating the trailing backslash now that the shell has been fixed.

diffstat:

 usr.bin/make/parse.c |  11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diffs (38 lines):

diff -r 076757a949ff -r 923e869a3c1c usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Fri Aug 29 09:26:39 2014 +0000
+++ b/usr.bin/make/parse.c      Fri Aug 29 09:27:43 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.201 2014/08/28 14:39:13 christos Exp $     */
+/*     $NetBSD: parse.c,v 1.202 2014/08/29 09:27:43 christos Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.201 2014/08/28 14:39:13 christos Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.202 2014/08/29 09:27:43 christos Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)parse.c    8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: parse.c,v 1.201 2014/08/28 14:39:13 christos Exp $");
+__RCSID("$NetBSD: parse.c,v 1.202 2014/08/29 09:27:43 christos Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -2876,10 +2876,7 @@
                ptr++;
            ch = ' ';
        } else {
-           // Don't add a trailign backslash at theend of a command
-           // This is what gmake does, but what does POSIX have to say?
-           if (ptr[0] != '\n' && ptr[0] != '\0')
-               *tp++ = '\\';
+           *tp++ = '\\';
            if (ptr[0] == '\t')
                ptr++;
        }



Home | Main Index | Thread Index | Old Index