On 30/08/2021 09:28 pm, Greg Wooledge wrote:
On Mon, Aug 30, 2021 at 10:06:37PM +0200, Přemysl Šťastný wrote:
I think, it would be nice, if you implemented Squiggly heredoc, which solves
this problem by ignoring both leading spaces and leading tabs. eg.

func()(
   cat <<~ EOF
     blabla
   EOF
)

This would break backward compatibility and POSIX compliance.

I'm sure there are real life scripts that have leading spaces in their
here-doc payloads which should be preserved.



Yes there are.

--
Chris Elvidge
England


Reply via email to