On Wed, Oct 07, 2026 at 09:51:01 +0200, Alejandro Colomar wrote:
> I'm trying to have a here document used within $() which itself is
> passed to eval(1).
*Shudder*
> Here's a minimal example of what I want:
>
> eval $(cat <<'__EOF__');
> echo foo;
> __EOF__
The closing parenthesis has to be after the __EOF__, on a new line.
eval $(cat <<'__EOF__'
echo foo
__EOF__
)
I have *no idea* how eval is going to interact with all that, so it's
all on you.