Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (feature request) Shell script within shell script
- X-seq: zsh-users 5899
- From: William Park <opengeometry@xxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: (feature request) Shell script within shell script
- Date: Sat, 8 Feb 2003 14:37:11 -0500
- In-reply-to: <1030208023126.ZM27171@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030128042243.GA3888@xxxxxxxxxxxxxxxxxxxxxx> <20030128104034.GA6470@xxxxxxxxxxxxxxxxxxxxxx> <20030131204945.GA1189@xxxxxxxxxxxxxxxxxxxxxx> <20030201073655.GA3893@xxxxxxxxxxxxxxxxxxxxxx> <20030203231518.GA8900@xxxxxxxxxxxxxxxxxxxxxx> <1030204091832.ZM15610@xxxxxxxxxxxxxxxxxxxxxxx> <20030207202324.GA31158@xxxxxxxxxxxxxxxxxxxxxx> <1030208023126.ZM27171@xxxxxxxxxxxxxxxxxxxxxxx>
On Sat, Feb 08, 2003 at 02:31:26AM +0000, Bart Schaefer wrote:
> Did you actually try that? It certainly doesn't work for me. You
> can't use two-or-more-digit numbers to represent FDs for redirection:
I use Bash. I asked this group, because I wanted to know if a cleaner
solution is possible (or easily patchable) than the classic method of
function test1 () {
cat >/tmp/test1 <<"EOF"
#! ...
...
EOF
chmod +x /tmp/test1
/tmp/test1 "$@"
}
> However, I'd like to point out that this is not what you originally
> asked for. You asked how to create a script, complete with #! line,
> and execute it, not how to feed a here-document to a command that
> expects a file name.
It's the best I could come up with. It's okey for now, since most
external programs (ie. awk, python) can take script file. But, my
search continues...
--
William Park, Open Geometry Consulting, <opengeometry@xxxxxxxx>
Linux solution for data management and processing.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author