[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
- Format of here-documents, goncholden, 2023/03/14
- Re: Format of here-documents,
alex xmb ratchev <=
- Re: Format of here-documents, Andreas Kusalananda Kähäri, 2023/03/14
- Re: Format of here-documents, goncholden, 2023/03/14
- Re: Format of here-documents, goncholden, 2023/03/14
- Re: Format of here-documents, Andreas Kusalananda Kähäri, 2023/03/14
- Re: Format of here-documents, Dennis Williamson, 2023/03/14
- Re: Format of here-documents, Jonesy, 2023/03/15
- Re: Format of here-documents, Dennis Williamson, 2023/03/15
- Re: Format of here-documents, Andreas Kusalananda Kähäri, 2023/03/15
- Re: Format of here-documents, Chet Ramey, 2023/03/14