To clarify that in the patch can you please insert the following comment above the `if` line:

    // skip substitution attempt when the string neither contains
    // a dollar sign for $(command) and $envvar nor
    // a backtick wrapping a command