Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (feature request) Shell script within shell script
- X-seq: zsh-users 5878
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: (feature request) Shell script within shell script
- Date: Tue, 4 Feb 2003 17:24:27 +0000
- In-reply-to: <20030204092826.GA18187@xxxxxxxxxxxxxxxxxxxxxx>
- 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> <20030204092826.GA18187@xxxxxxxxxxxxxxxxxxxxxx>
On Feb 4, 4:28am, William Park wrote:
}
} > 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 <(...)?
You'd think so, but that's not how <(...) et al. are parsed.
schaefer[501] ( cat <<EOF
subsh heredoc> heredoc
subsh heredoc> EOF)
subsh heredoc> )
subsh heredoc> EOF
subsh> )
heredoc
EOF)
)
schaefer[502] cat =( cat <<EOF
cmdsubst> heredoc
cmdsubst> EOF)
heredoc
schaefer[503] schaefer[504] cat =( cat <<EOF
cmdsubst> )
schaefer[504]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author