colis-anr / morbig

A static parser for POSIX Shell
Other
190 stars 8 forks source link

parsing of here documents #75

Closed treinen closed 5 years ago

treinen commented 5 years ago

the CST of a here document is a word, with an empty CST. Shouldn't the contents of a "normal" here-document be word-parsed, as it is the case now for other words ? By "normal here-document" I mean a here-document where the defining occurrence of the delimiter is not quoted. If the delimiter is quoted then the contents of the here-document should just be a WordLiteral since in that case no expansion shall happen on the contents of the here document.

Niols commented 5 years ago

I agree, they should be parsed. Except if there is a counter-indication for this?

yurug commented 5 years ago

I agree. Thanks for reporting.

yurug commented 5 years ago

Fixed a long time again.