On Mon, Aug 30, 2021 at 04:28:40PM -0400, 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.

Oh, sorry.  I didn't notice that you changed the syntax in your
proposal (changed <<- to <<~ ).

I withdraw my objection.

Reply via email to