Multiline syntax for piping a heredoc; is this portable?
Yes, the POSIX standard allows this. According to the 2008 version: The here-document shall be treated as a single word that begins after the next <newline> and continues until there is a line containing only the delimiter and a <newline>, with no <blank> characters in between. Then the next here-document starts, if there is one. … Read more