Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: (feature request) Shell script within shell script
- X-seq: zsh-users 5860
- From: "Clifford Caoile" <piyokun@xxxxxxxxx>
- To: <zsh-users@xxxxxxxxxx>
- Subject: RE: (feature request) Shell script within shell script
- Date: Sun, 2 Feb 2003 02:58:54 +0900
- Importance: Normal
- In-reply-to: <20030201165641.GB13822@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Quotes... mmm zsh-goodness... Thanks for the heads up I didn't know that.
,-~-.
< ^ ; ~, Clifford Escobar CAOILE (aka "Piyo-kun")
(_ _,
J~~> _.___...:.__..__.: __.:_. .:_.__::_..:._::._... _____ p(^_^)q
| -----Original Message-----
| From: Will Yardley [mailto:william@xxxxxxxxxxxxxxxx]
| Sent: Sunday, February 02, 2003 01:57
| To: zsh-users@xxxxxxxxxx
| Subject: Re: (feature request) Shell script within shell script
|
|
| 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