Confusing heredoc message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash8 |
New
|
Undecided
|
Unassigned |
Bug Description
While adding bashate to openstack/
E012: heredoc did not end before EOF: ' string=$(python <<EOF'
From https:/
foo=$(cmd <<HEREDOC
some text
in a heredoc
HEREDOC)
It does accept the following:
foo=$(cmd <<HEREDOC
some text
in a heredoc
HEREDOC
)
It might be better to provide a better error message if the former is against bashate's style guidelines. That said this seems like a bug that it's missing this and providing that error message.
I wasn't able to reproduce this with the latest bashate.
(.venv) 631 [bashate]$ cat heredoc.sh
foo=$(cmd <<HEREDOC
some text
in a heredoc
HEREDOC)
(.venv) 632 [bashate]$ bashate heredoc.sh
(.venv) 633 [bashate]$