From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18543 invoked from network); 17 Feb 2005 09:36:41 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Feb 2005 09:36:41 -0000 Received: (qmail 19154 invoked from network); 17 Feb 2005 09:36:35 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Feb 2005 09:36:35 -0000 Received: (qmail 4690 invoked by alias); 17 Feb 2005 09:36:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8516 Received: (qmail 4677 invoked from network); 17 Feb 2005 09:36:14 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Feb 2005 09:36:14 -0000 Received: (qmail 17882 invoked from network); 17 Feb 2005 09:36:14 -0000 Received: from dsl3-63-249-88-2.cruzio.com (HELO binome.blorf.net) (63.249.88.2) by a.mx.sunsite.dk with SMTP; 17 Feb 2005 09:36:10 -0000 Received: by binome.blorf.net (Postfix, from userid 1000) id 5D08345F; Thu, 17 Feb 2005 01:36:09 -0800 (PST) Date: Thu, 17 Feb 2005 01:36:09 -0800 From: Wayne Davison To: Zsh Users Subject: Re: Adding arbitrary data at the end of a script Message-ID: <20050217093609.GA25163@blorf.net> References: <20050217091256.GA941@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050217091256.GA941@DervishD> User-Agent: Mutt/1.5.6+20040907i X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Thu, Feb 17, 2005 at 10:12:56AM +0100, DervishD wrote: > #!/bin/zsh > true > exit 0 > cat << DATA.EOF > /dev/null > > DATA.EOF You just need single quotes around the DATA.EOF to tell zsh to treat the data literally: #!/bin/zsh true exit 0 cat << 'DATA.EOF' > /dev/null DATA.EOF You could drop the ">/dev/null" too, if you wanted (since the line will never get executed). You could even substitute another program for "cat" (such as "true" or "MadeUpNameOfMissingCommand") if you want to make the line more distinctive. ..wayne..