Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: (feature request) Shell script within shell script



On Tue, Feb 04, 2003 at 09:18:32AM +0000, Bart Schaefer wrote:
> 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.

Wouldn't here-document have priority over <(...)?  Here-document will
read the content up to 'EOF' verbatim, as I understand.

-- 
William Park, Open Geometry Consulting, <opengeometry@xxxxxxxx>
Linux solution for data management and processing. 



Messages sorted by: Reverse Date, Date, Thread, Author