On Mon, May 08, 2023 at 08:28:36AM +0200, alex xmb ratchev wrote:
> On Mon, May 8, 2023, 04:07 Hyunho Cho <mug...@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 \@.

Reply via email to