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

Re: (feature request) Shell script within shell script



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