So it should process:
* commands wrapped in backticks (`` `...` ``)
* commands wrapped in `$(...)`
* environment variables accessed with `$name`

Then the patch makes sense as it is.