help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Format of here-documents


From: alex xmb ratchev
Subject: Re: Format of here-documents
Date: Tue, 14 Mar 2023 13:08:54 +0100

On Tue, Mar 14, 2023, 12:58 PM goncholden via <help-bash@gnu.org> wrote:

> Have been reading the manual about Here-Documents.
>
> The format of here-documents is:
>
> [
>
> n
>
> ]<<[-]
>
> word
>
> here-document
>
> delimiter
>
> But in practice I have seen the following
>
> cat << _end_of_text
> First Line
> Second Line
> Third Line
> _end_of_text
>
> Meaning that 'delimiter' is actually '
>
> word'.  Is this correct ?


yes , word there is the delimiter , word class of handling

{ var=$( </proc/$$/fd/0 ) ; } <<'eo'
1
  2
    3
eo

space safe in ' quotes
im not so pro there


reply via email to

[Prev in Thread] Current Thread [Next in Thread]