diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-01-07 20:50:00 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-01-07 20:50:00 +0000 |
commit | 369cba5f938d3f804210b6e09d36c6f7ecb017fa (patch) | |
tree | d669ae599d264b3382785aa71f737984df0aece5 /68000 | |
parent | 70edb7fbae4f0a38593c0dc1f936838adc6861ac (diff) |
rc: read heredoc when receiving '\n' (thanks Eckard Brauer)
Eckard's test case:
cat <<! | cat
asdf
!
The issue is that we have to continue parsing until we see
the '\n' before consuming the here document.
So we revert to the old approach of having two functions:
heredoc() which remembers if we'v seen a heredoc redirection
and a second readhere() function that reads the doc from
the lexers input and sets Tree.str on thee REDIR node.
Diffstat (limited to '68000')
0 files changed, 0 insertions, 0 deletions