yash-rs icon indicating copy to clipboard operation
yash-rs copied to clipboard

Here-doc delimiter without newline

Open magicant opened this issue 3 years ago • 0 comments
trafficstars

$ printf '<<foo\nfoo' | cargo r
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/yash`
error: The delimiter to close the here-document content is missing
 --> <stdin>:2:4
  |
1 | <<foo
  |   --- info: the redirection operator was here
2 | foo
  |     missing delimiter
  |

Like many other shells, yash-rs should accept this syntax.

magicant avatar Jul 24 '22 03:07 magicant