Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: indented heredocs



On 2016-12-22 11:04:49 -0800, Philippe Troin wrote:
> We already can handle the simple cases:
>   cat <<EOD  will use the document as is
>   cat <<-EOD will strip leading tabs

Not everyone uses leading tabs. I think that getting the indent
prefix (as a sequence of whitespace) from the first line of the
heredoc would have been a better idea.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author