From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15936 invoked from network); 1 Feb 2003 16:57:09 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 1 Feb 2003 16:57:09 -0000 Received: (qmail 17195 invoked by alias); 1 Feb 2003 16:56:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5858 Received: (qmail 17188 invoked from network); 1 Feb 2003 16:56:40 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 1 Feb 2003 16:56:40 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [66.33.200.10] by sunsite.dk (MessageWall 1.0.8) with SMTP; 1 Feb 2003 16:56:39 -0000 Received: from 127.0.0.1 (zugzug.hq.newdream.net [127.0.0.1]) by drama.hq.newdream.net (Postfix) with SMTP id EE5953B31D for ; Sat, 1 Feb 2003 08:56:41 -0800 (PST) Received: by mail.hq.newdream.net (Postfix, from userid 1012) id DD1C23B2E9; Sat, 1 Feb 2003 08:56:41 -0800 (PST) Date: Sat, 1 Feb 2003 08:56:41 -0800 From: william@hq.dreamhost.com (Will Yardley) To: Subject: Re: (feature request) Shell script within shell script Message-ID: <20030201165641.GB13822@hq.newdream.net> Mail-Followup-To: References: <20030201073655.GA3893@node1.opengeometry.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: New Dream Network X-Message-Flag: Why are you reading this? User-Agent: Mutt/1.5.3i 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 < 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")