I'm curious why my post was downvoted. If there are people out there who think that file descriptor duplication is intuitive behavior for shell redirection, I would love to hear about it! I don't learn anything from silent downvotes.
It's not intuitive, but it was easy to implement :) There are a lot of things in Unix and Unix shell like that.
I learned that parsing here docs is another one of them! It's a weird syntax, and I came up with something clever for parsing it. And then I realized there is a simple algorithm that kind of "falls out" of the AST.