pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/regress/make-quoting Added a testcase for a bug in the...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3605382bf738
branches: trunk
changeset: 515245:3605382bf738
user: rillig <rillig%pkgsrc.org@localhost>
date: Thu Jun 29 13:35:18 2006 +0000
description:
Added a testcase for a bug in the :Q operator in bmake.
diffstat:
regress/make-quoting/Makefile | 6 +++---
regress/make-quoting/files/newline.mk | 11 +++++++++++
regress/make-quoting/files/newline.out | 1 +
regress/make-quoting/files/quoting.mk | 5 ++++-
4 files changed, 19 insertions(+), 4 deletions(-)
diffs (56 lines):
diff -r 6b416fb1df31 -r 3605382bf738 regress/make-quoting/Makefile
--- a/regress/make-quoting/Makefile Thu Jun 29 12:47:19 2006 +0000
+++ b/regress/make-quoting/Makefile Thu Jun 29 13:35:18 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2006/05/11 23:10:50 rillig Exp $
+# $NetBSD: Makefile,v 1.6 2006/06/29 13:35:18 rillig Exp $
#
DISTNAME= regress-make-1.0
@@ -8,8 +8,8 @@
MAINTAINER= rillig%NetBSD.org@localhost
COMMENT= Test Makefile quoting and make(1) bugs
-REGRESS_TESTS= continue dblquote for ltarget nestfor quoting sglquote \
- vtarget bug1 bug2
+REGRESS_TESTS= bug1 bug2 continue dblquote for ltarget nestfor newline
+REGRESS_TESTS+= quoting sglquote vtarget
WRKSRC= ${WRKDIR}
diff -r 6b416fb1df31 -r 3605382bf738 regress/make-quoting/files/newline.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/make-quoting/files/newline.mk Thu Jun 29 13:35:18 2006 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: newline.mk,v 1.1 2006/06/29 13:35:18 rillig Exp $
+#
+# This file documents a bug in the :Q operator, which does not handle
+# the newline character correctly. It produces <backslash><newline>
+# instead of the proper <quote><newline><quote>.
+#
+
+S= foo ${.newline} bar
+
+all:
+ printf "%s\\n" ${S:Q}
diff -r 6b416fb1df31 -r 3605382bf738 regress/make-quoting/files/newline.out
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/make-quoting/files/newline.out Thu Jun 29 13:35:18 2006 +0000
@@ -0,0 +1,1 @@
+foo bar
diff -r 6b416fb1df31 -r 3605382bf738 regress/make-quoting/files/quoting.mk
--- a/regress/make-quoting/files/quoting.mk Thu Jun 29 12:47:19 2006 +0000
+++ b/regress/make-quoting/files/quoting.mk Thu Jun 29 13:35:18 2006 +0000
@@ -1,8 +1,11 @@
-# $NetBSD: quoting.mk,v 1.1.1.1 2005/05/15 21:10:16 rillig Exp $
+# $NetBSD: quoting.mk,v 1.2 2006/06/29 13:35:18 rillig Exp $
#
# This file demonstrates various techniques for quoting variables when
# passing them to the shell.
#
+# The third line revealed a bug in the NetBSD 3.0 shell, which discards
+# the last argument under some circumstances when it is empty.
+#
EVIL_STRING?= " "
Home |
Main Index |
Thread Index |
Old Index