Re: Quoted new-lines cause heredoc to consume first new-line

2021-12-06 Thread Chet Ramey
On 12/5/21 5:15 PM, S0AndS0 wrote: > ## How to reproduce > > > Copy following example into a terminal session; > > > ```bash > gawk '{ >   print $0; > }' <<'EOF' > first > second > third > EOF > ``` > > > Press ``, then `` >> [user@host ~]$ gawk '{ >>   print $0; >> }' <<'EOF'firs

Quoted new-lines cause heredoc to consume first new-line

2021-12-05 Thread S0AndS0
## How to reproduce Copy following example into a terminal session; ```bash gawk '{   print $0; }' <<'EOF' first second third EOF ``` Press ``, then `` > [user@host ~]$ gawk '{ >   print $0; > }' <<'EOF'first > second > third > EOF Notice the `}' <<'EOF'first` bit w