make shell readline script more readable, using a heredoc