Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (feature request) Shell script within shell script
- X-seq: zsh-users 5858
- From: william@xxxxxxxxxxxxxxxx (Will Yardley)
- To: <zsh-users@xxxxxxxxxx>
- Subject: Re: (feature request) Shell script within shell script
- Date: Sat, 1 Feb 2003 08:56:41 -0800
- In-reply-to: <BBEKIEKOHGEFJBFLEENGEEFECGAA.piyokun@xxxxxxxxx>
- Mail-followup-to: <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: New Dream Network
- References: <20030201073655.GA3893@xxxxxxxxxxxxxxxxxxxxxx> <BBEKIEKOHGEFJBFLEENGEEFECGAA.piyokun@xxxxxxxxx>
On Sun, Feb 02, 2003 at 12:48:01AM +0900, Clifford Caoile wrote:
> I am not an expert, but I was exploring here documents in bash and zsh just
> this last week. Let me see if I get this right:
>
> In zsh-4.0.x, you can use "here documents" or "here-strings". A here
> document has this syntax (note there is no double quotations necessary):
>
> >> /etc/hosts <<EOF
> 192.168.0.26 mynewcomputer.zsh.org
> EOF
>
> This adds the line to the /etc/hosts file. The cat command is implicit.
> (It's still a useless cat trick, right?)
Zsh can already do heredocs; whether you use quotes or not affects how
quotes and stuff are treated in the actual heredoc.
--
"Since when is skepticism un-American?
Dissent's not treason but they talk like it's the same..."
(Sleater-Kinney - "Combat Rock")
Messages sorted by:
Reverse Date,
Date,
Thread,
Author