How the h is this working without a close HEREDOC?