Setting vars with heredoc using read is worse than this IMHO.