Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make Treat '~' as a meta char requiring a shell.



details:   https://anonhg.NetBSD.org/src/rev/d593b353337f
branches:  trunk
changeset: 325669:d593b353337f
user:      sjg <sjg%NetBSD.org@localhost>
date:      Fri Jan 03 00:02:01 2014 +0000

description:
Treat '~' as a meta char requiring a shell.
Patch from Steve McIntyre 93sam at debian.org

Reviewed by: christos

diffstat:

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

diffs (35 lines):

diff -r a9400f35207e -r d593b353337f usr.bin/make/compat.c
--- a/usr.bin/make/compat.c     Thu Jan 02 23:33:50 2014 +0000
+++ b/usr.bin/make/compat.c     Fri Jan 03 00:02:01 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat.c,v 1.93 2013/09/02 19:26:42 sjg Exp $  */
+/*     $NetBSD: compat.c,v 1.94 2014/01/03 00:02:01 sjg Exp $  */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: compat.c,v 1.93 2013/09/02 19:26:42 sjg Exp $";
+static char rcsid[] = "$NetBSD: compat.c,v 1.94 2014/01/03 00:02:01 sjg Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)compat.c   8.2 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: compat.c,v 1.93 2013/09/02 19:26:42 sjg Exp $");
+__RCSID("$NetBSD: compat.c,v 1.94 2014/01/03 00:02:01 sjg Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -130,7 +130,7 @@
 
     Shell_Init();              /* setup default shell */
     
-    for (cp = "#=|^(){};&<>*?[]:$`\\\n"; *cp != '\0'; cp++) {
+    for (cp = "~#=|^(){};&<>*?[]:$`\\\n"; *cp != '\0'; cp++) {
        meta[(unsigned char) *cp] = 1;
     }
     /*



Home | Main Index | Thread Index | Old Index