svn commit: r333507 - head/bin/sh/tests/parser

Jilles Tjoelker jilles at FreeBSD.org
Fri May 11 21:56:02 UTC 2018


Author: jilles
Date: Fri May 11 21:56:01 2018
New Revision: 333507
URL: https://svnweb.freebsd.org/changeset/base/333507

Log:
  sh: Test that backslash-newline within single-quotes is not special
  
  This works correctly, but the test may be helpful when modifying the parser.

Added:
  head/bin/sh/tests/parser/line-cont12.0   (contents, props changed)
Modified:
  head/bin/sh/tests/parser/Makefile

Modified: head/bin/sh/tests/parser/Makefile
==============================================================================
--- head/bin/sh/tests/parser/Makefile	Fri May 11 21:46:53 2018	(r333506)
+++ head/bin/sh/tests/parser/Makefile	Fri May 11 21:56:01 2018	(r333507)
@@ -74,6 +74,7 @@ ${PACKAGE}FILES+=	line-cont8.0
 ${PACKAGE}FILES+=	line-cont9.0
 ${PACKAGE}FILES+=	line-cont10.0
 ${PACKAGE}FILES+=	line-cont11.0
+${PACKAGE}FILES+=	line-cont12.0
 ${PACKAGE}FILES+=	no-space1.0
 ${PACKAGE}FILES+=	no-space2.0
 ${PACKAGE}FILES+=	nul1.0

Added: head/bin/sh/tests/parser/line-cont12.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/bin/sh/tests/parser/line-cont12.0	Fri May 11 21:56:01 2018	(r333507)
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+[ '\
+' = "\\
+" ]


More information about the svn-src-head mailing list