colis-anr/morbig

Morbig accepts unclosed backquotes in here documents and doesn't give them any word CST

Niols opened this issue · 0 comments

Niols commented

The following script:

cat <<EOF
(this `(is some) lisp)
EOF

should probably (I'm not sure) be rejected because of the backquote in the here document that is unclosed. Dash rejects it while Morbig accepts it.

Also, there does not seem to be any word CST for this here document!

[
  "IoRedirect_IoHere",
  [
    "IoHere_DLess_HereEnd",
    [
      "HereEnd_Word",
      [ "Word", "EOF", [ [ "WordName", "EOF" ] ] ]
    ],
    [ "Word", "(ceci `(est du) lisp)\n", [] ]
  ]
]