Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make Recognize the crazy POSIXisms $(?D) and $(?F); ...



details:   https://anonhg.NetBSD.org/src/rev/674b48ae860f
branches:  trunk
changeset: 802427:674b48ae860f
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Sep 13 23:21:01 2014 +0000

description:
Recognize the crazy POSIXisms $(?D) and $(?F); issue 2 in PR 49085
from Jarmo Jaakkola.

diffstat:

 usr.bin/make/var.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 7618e233ef61 -r 674b48ae860f usr.bin/make/var.c
--- a/usr.bin/make/var.c        Sat Sep 13 23:10:28 2014 +0000
+++ b/usr.bin/make/var.c        Sat Sep 13 23:21:01 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.189 2014/09/13 23:10:28 dholland Exp $       */
+/*     $NetBSD: var.c,v 1.190 2014/09/13 23:21:01 dholland Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: var.c,v 1.189 2014/09/13 23:10:28 dholland Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.190 2014/09/13 23:21:01 dholland Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)var.c      8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: var.c,v 1.189 2014/09/13 23:10:28 dholland Exp $");
+__RCSID("$NetBSD: var.c,v 1.190 2014/09/13 23:21:01 dholland Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -3734,7 +3734,7 @@
         */
        if ((v == NULL) && (ctxt != VAR_CMD) && (ctxt != VAR_GLOBAL) &&
                (vlen == 2) && (str[1] == 'F' || str[1] == 'D') &&
-               strchr("@%*!<>", str[0]) != NULL) {
+               strchr("@%?*!<>", str[0]) != NULL) {
            /*
             * Well, it's local -- go look for it.
             */



Home | Main Index | Thread Index | Old Index