When calling $ /bin/sh -c "$(cat foo); foo"
, the $(cat foo)
part is evaluated in the outer sh
process, so the actual argument your sh
invocation is getting is:
When calling $ /bin/sh -c "$(cat foo); foo"
, the $(cat foo)
part is evaluated in the outer sh
process, so the actual argument your sh
invocation is getting is: