aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2018-05-11 21:56:01 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2018-05-11 21:56:01 +0000
commit0c6c134f7959111a99af3893cf74432d71952f49 (patch)
tree8af8e9fc92b768d6f2f4a2fc7618c64bb4e48bca /bin
parentb69888c28f785976fda74f77e76f1dcddb980413 (diff)
downloadsrc-0c6c134f7959111a99af3893cf74432d71952f49.tar.gz
src-0c6c134f7959111a99af3893cf74432d71952f49.zip
sh: Test that backslash-newline within single-quotes is not special
This works correctly, but the test may be helpful when modifying the parser.
Notes
Notes: svn path=/head/; revision=333507
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/tests/parser/Makefile1
-rw-r--r--bin/sh/tests/parser/line-cont12.05
2 files changed, 6 insertions, 0 deletions
diff --git a/bin/sh/tests/parser/Makefile b/bin/sh/tests/parser/Makefile
index 28816a926807..9a65499e77e5 100644
--- a/bin/sh/tests/parser/Makefile
+++ b/bin/sh/tests/parser/Makefile
@@ -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
diff --git a/bin/sh/tests/parser/line-cont12.0 b/bin/sh/tests/parser/line-cont12.0
new file mode 100644
index 000000000000..27f8260feee9
--- /dev/null
+++ b/bin/sh/tests/parser/line-cont12.0
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+[ '\
+' = "\\
+" ]