diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-10-17 18:33:43 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-10-18 11:15:43 +0300 |
commit | 329aa22d9f8e72596b909d2110e11976949155fa (patch) | |
tree | a80658eb46c5e734a3d779b5a45059bdb2d9908b /libbuild2/build/script | |
parent | 4ca0dee17566ab429a3cdf871e9992c51f5bf71a (diff) |
Add unexpected 'unterminated double-quoted sequence' error testscript reproducers
Diffstat (limited to 'libbuild2/build/script')
-rw-r--r-- | libbuild2/build/script/parser+diag.test.testscript | 11 | ||||
-rw-r--r-- | libbuild2/build/script/parser+for.test.testscript | 15 |
2 files changed, 26 insertions, 0 deletions
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 @@ $* <<EOI >>EOO diag: copy foo EOO + # @@ TMP Enable when the unexpected 'unterminated double-quoted sequence' + # error is fixed. + #\ + : quoted + : + $* <<EOI >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 + : + $* <<EOI >>EOO + o=-w + for "$o" x <'a b' + cmd $x + end + EOI + for -w x <'a b' + EOO + #\ + : untyped : $* <<EOI >>EOO |