help-bash
[Top][All Lists]
Advanced

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

Re: Format of here-documents


From: goncholden
Subject: Re: Format of here-documents
Date: Tue, 14 Mar 2023 12:30:11 +0000

Changes to the manual so things about here documents and here strings are 
clearer
would help.

------- Original Message -------
On Wednesday, March 15th, 2023 at 12:08 AM, alex xmb ratchev 
<fxmbsw7@gmail.com> wrote:


> 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]