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:28:40 -0400

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.



reply via email to

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