The "canonical" example of usefulness of POSIX shell eval built-in is this:
>foo=10
>x=foo
>eval y='$'$x
>echo $y
10
But the POSIX shell standard says:
The eval utility shall construct a command by concatenating arguments together, separating each with a <space> character. The constructed command shall be read and executed by the shell.
Indeed, I can't find any examples of non-trivial (that is, whose results cannot be achieved simpler) usage of eval with such contatenation?
Please show me.