Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make(1): document pattern matching edge case in...



details:   https://anonhg.NetBSD.org/src/rev/39fe2a5a5d92
branches:  trunk
changeset: 956257:39fe2a5a5d92
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Oct 25 09:03:05 2020 +0000

description:
make(1): document pattern matching edge case in DirMatchFiles

diffstat:

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

diffs (28 lines):

diff -r a572c415c27b -r 39fe2a5a5d92 usr.bin/make/dir.c
--- a/usr.bin/make/dir.c        Sun Oct 25 08:59:26 2020 +0000
+++ b/usr.bin/make/dir.c        Sun Oct 25 09:03:05 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dir.c,v 1.181 2020/10/25 08:59:26 rillig Exp $ */
+/*     $NetBSD: dir.c,v 1.182 2020/10/25 09:03:05 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -135,7 +135,7 @@
 #include "job.h"
 
 /*     "@(#)dir.c      8.2 (Berkeley) 1/2/94"  */
-MAKE_RCSID("$NetBSD: dir.c,v 1.181 2020/10/25 08:59:26 rillig Exp $");
+MAKE_RCSID("$NetBSD: dir.c,v 1.182 2020/10/25 09:03:05 rillig Exp $");
 
 #define DIR_DEBUG0(text) DEBUG0(DIR, text)
 #define DIR_DEBUG1(fmt, arg1) DEBUG1(DIR, fmt, arg1)
@@ -608,7 +608,8 @@
         * pattern begins with a dot. The pattern '.*' does not match '.' or
         * '..' since these are not included in the directory cache.
         *
-        * XXX: This means that the pattern '[a-z.]*' does not find '.file'.
+        * This means that the pattern '[a-z.]*' does not find '.file', which
+        * is consistent with bash, NetBSD sh and csh.
         */
        if (base[0] == '.' && pattern[0] != '.')
            continue;



Home | Main Index | Thread Index | Old Index