From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16067 invoked from network); 4 Feb 2003 09:18:57 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Feb 2003 09:18:57 -0000 Received: (qmail 6206 invoked by alias); 4 Feb 2003 09:18:32 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5870 Received: (qmail 6199 invoked from network); 4 Feb 2003 09:18:31 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 4 Feb 2003 09:18:31 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.46.181.248] by sunsite.dk (MessageWall 1.0.8) with SMTP; 4 Feb 2003 9:18:31 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h149IXs15611 for zsh-users@sunsite.dk; Tue, 4 Feb 2003 01:18:33 -0800 From: "Bart Schaefer" Message-Id: <1030204091832.ZM15610@candle.brasslantern.com> Date: Tue, 4 Feb 2003 09:18:32 +0000 In-Reply-To: <20030203231518.GA8900@node1.opengeometry.net> Comments: In reply to William Park "Re: (feature request) Shell script within shell script" (Feb 3, 6:15pm) References: <20030128042243.GA3888@node1.opengeometry.net> <20030128104034.GA6470@node1.opengeometry.net> <20030131204945.GA1189@node1.opengeometry.net> <20030201073655.GA3893@node1.opengeometry.net> <20030203231518.GA8900@node1.opengeometry.net> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: (feature request) Shell script within shell script MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 3, 6:15pm, William Park wrote: } } I've finally managed to find a solution. It's called "process } substitution": } function test1 () { } awk -f <( cat <<"EOF" } ... } ... } EOF } ) } } Just watch out for what happens if you ever have unbalanced parentheses in the content of the here-document.