x=$(cat <<EOF
Hi.
EOF)
print "$x"
If my shebang is "/bin/ksh" this print "Hi." If my shebang is /bin/ksh93 this errors with:
syntax error at line 3: `(' unmatched.
I guess my default ksh is ksh88.
So, I'm used to setting variables this way, allowing a complex command (that may involving logging into a database, or whatever) to get its input from the here document and to return a single value directly into a variable. But, I also need ksh93-specific functionality.
Recommendations?