# file      : libbuild2/shell/script/parser+variable.test.testscript
# license   : MIT; see accompanying LICENSE file

: assignment
:
$* <<EOI >>EOO
a = b
echo $a
EOI
echo b
EOO

: no-newline
:
$* <:'echo a' 2>>EOE != 0
shellscript:11:7: error: expected newline instead of <end of file>
EOE

: set-primary-target
:
$* <<EOI 2>>EOE != 0
> = a
EOI
shellscript:11:1: error: missing program
EOE

: empty-name
:
$* <<EOI 2>>EOE != 0
= b
EOI
shellscript:11:1: error: missing variable name
EOE
