From 329aa22d9f8e72596b909d2110e11976949155fa Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 17 Oct 2022 18:33:43 +0300 Subject: Add unexpected 'unterminated double-quoted sequence' error testscript reproducers --- libbuild2/build/script/parser+diag.test.testscript | 11 +++++++++++ libbuild2/build/script/parser+for.test.testscript | 15 +++++++++++++++ 2 files changed, 26 insertions(+) (limited to 'libbuild2/build/script') diff --git a/libbuild2/build/script/parser+diag.test.testscript b/libbuild2/build/script/parser+diag.test.testscript index 18f7f83..272d10c 100644 --- a/libbuild2/build/script/parser+diag.test.testscript +++ b/libbuild2/build/script/parser+diag.test.testscript @@ -45,6 +45,17 @@ $* <>EOO diag: copy foo EOO + # @@ TMP Enable when the unexpected 'unterminated double-quoted sequence' + # error is fixed. + #\ + : quoted + : + $* <false + f = foo + diag "$f" + EOI + #\ + : temp_dir : { diff --git a/libbuild2/build/script/parser+for.test.testscript b/libbuild2/build/script/parser+for.test.testscript index cbcaf14..880b03c 100644 --- a/libbuild2/build/script/parser+for.test.testscript +++ b/libbuild2/build/script/parser+for.test.testscript @@ -543,6 +543,21 @@ buildfile:11:1: error: for: missing variable name EOE + # @@ TMP Enable when the unexpected 'unterminated double-quoted sequence' + # error is fixed. + #\ + : quoted-ops + : + $* <>EOO + o=-w + for "$o" x <'a b' + cmd $x + end + EOI + for -w x <'a b' + EOO + #\ + : untyped : $* <>EOO -- cgit v1.1