Re: heredoc seems to parse contents even with the quoted delimiter in shell prompt

2020-08-17 Thread Chet Ramey
On 8/16/20 1:34 AM, Hyunho Cho wrote: > > if i use the same script in shell prompt then strange error messages appear > > > bash$ cat << "EOF" > this is a test comment > $(info $(foo ${bar))) > EOF > bash: command substitution: line 798: unexpected EOF while looking for > matching `}' > bash: c

heredoc seems to parse contents even with the quoted delimiter in shell prompt

2020-08-15 Thread Hyunho Cho
Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-a6qmCk/bash-5.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-parentheses -Wno-format-security uname output: Linux EliteBook 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:2