To simplify the problem, I have in a PowerShell script something like this:
param (
[string]$TAG
)
git submodule foreach --recursive " echo `"$TAG on $name`" "
The problem is $name is not resolved at script execution. I need a solution where both $TAG and $name are resolved. I mention this because I had such a problem with a bash script and I encountered many solutions were one or another was not resolved.