Subject: [patch] 1.6 build: why do I need this?
To: NetBSD Users <netbsd-users@netbsd.org>
From: Bryan J. Phillippe <bryan@darkforest.org>
List: netbsd-users
Date: 10/15/2002 08:45:32
Hello,

For some reason,(*) I need this patch to build 1.6:

Index: distrib/common/parselist.awk
===================================================================
RCS file: /cvsroot/basesrc/distrib/common/parselist.awk,v
retrieving revision 1.10.2.1
diff -u -r1.10.2.1 parselist.awk
--- distrib/common/parselist.awk	2002/05/29 04:52:13	1.10.2.1
+++ distrib/common/parselist.awk	2002/10/15 15:29:12
@@ -141,14 +141,14 @@

 #	replace ${FOO} with ENVIRON["FOO"]
 #
-/\${[A-Za-z0-9_]+}/ \
+/\$\{[A-Za-z0-9_]+\}/ \
 {
-	while (match($0, /\${[A-Za-z0-9_]+}/) > 0) {
+	while (match($0, /\$\{[A-Za-z0-9_]+\}/) > 0) {
 		v = substr($0, RSTART + 2, RLENGTH - 3);
 		if (! (v in ENVIRON))
 			err("Variable " v " is not in the environment");
 		else
-			sub(/\${[A-Za-z0-9_]+}/, ENVIRON[v]);
+			sub(/\$\{[A-Za-z0-9_]+\}/, ENVIRON[v]);
 	}
 }

(*) I suspect it may be because I have POSIXLY_CORRECT set in my shell.

-bp
--
# bryan_at_darkforest_dot_org
# Software Engineer