From: abouhaga
To: bug-bash@gnu.org
Subject: Reporting a BUG in Heredoc.
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: darwin18.7.0
Compiler: clang
Compilation CFLAGS: -DSSH_SOURCE_BASHRC
uname output: Darwin e2r9p9.1337.ma 18.7.0 Darwin Kernel Version 18.
On Tue, 25 Oct 2022 19:32:33 +
Abla OUHAGA wrote:
> From: abouhaga
> To: bug-bash@gnu.org
> Subject: Reporting a BUG in Heredoc.
>
> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: darwin18.7.0
> Compiler: clang
> Compilation CFLAGS: -DSSH_SOURCE_B
There is no bash bug here, though it could perhaps be a little
kinder to users who make this simple mistake.
The rules for heredocs say that the end delimiter is a line.
A line cannot contain an embedded newline - then it would be
two lines.
The here doc end delimiter given after the << redirect