[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unnecessary bash warning message
From: |
Greg Wooledge |
Subject: |
Re: Unnecessary bash warning message |
Date: |
Mon, 8 May 2023 07:04:41 -0400 |
On Mon, May 08, 2023 at 08:28:36AM +0200, alex xmb ratchev wrote:
> On Mon, May 8, 2023, 04:07 Hyunho Cho <mug896@gmail.com> wrote:
> > bash$ julia <( cat <<\@ ) 11 22 33
> > for a in ARGS println(a) end
> > @
> > bash: warning: command substitution: 1 unterminated here-document
> > 11
> > 22
> > 33
> >
>
> i d guess u need \@ down too
> .. @ is no special , about ur \
Backslash is a quoting character.
cmd <<\@
is equivalent to
cmd <<'@'
Both of them mean "since at least one character in the sentinel word is
quoted, do not apply substitutions to the here document body".
The sentinel word in both cases is simply @ -- not '@' or \@.