> Will ksh93 version ever get to upstream? This ugly 'bug' is here for
> decades and really irritates me and many people, who ever used shell for
> larger scripting and don't like to use tabs.
I used to always prefer spaces, until I switched to auto formatting all my Bash
scripts with shfmt[1]. It
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
On Mon, Aug 30, 2021, at 5:22 PM, Přemysl Šťastný wrote:
> Will ksh93 version ever get to upstream?
I don't know what you mean by that. ksh is not "downstream" of
bash; it is a separate project. Whether bash incorporates this
feature or one like it is up to Chet, who hasn't yet chimed in.
> Thi
Hi.
Thank for your answer.
Will ksh93 version ever get to upstream? This ugly 'bug' is here for
decades and really irritates me and many people, who ever used shell for
larger scripting and don't like to use tabs.
Best regards
P.
On 8/30/21 11:14 PM, Lawrence Velázquez wrote:
On Mon, Aug 3
On Mon, Aug 30, 2021, at 4:06 PM, 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
> )
'<<~' is already syntactically vali
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()(
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 compa
Hello.
I have a problem with indentation in bash scripts with here documents.
Normally, I use spaces for indentation, eg.
func()(
blabla
)
But if need to use here doc document in a function, I am forced to do eather
func()(
cat <<- EOF
blabla
EOF
)
or
func()(
cat << E