bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Squiggly heredoc - new feature request


From: Greg Wooledge
Subject: Re: Squiggly heredoc - new feature request
Date: Mon, 30 Aug 2021 16:31:51 -0400

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

[Prev in Thread] Current Thread [Next in Thread]