diff options
Diffstat (limited to 'libbuild2/build')
-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 |