Closed Paebbels closed 6 years ago
What shell is used by the command, when invoked from PowerShell through PoSh-Git? It doesn't seam to be the bash from within Git's MSYS (MinGW) environment.
posh-git doesn't (shouldn't?) change anything about how git itseld executes. You are most likely encountering a difference in how Bash and PowerShell handle escaping characters (`
vs \
). Can you share your PowerShell translation?
I'm poor enough at troubleshooting those situations (usually for filter-branch
) that I just use Git Bash as needed. If you really must translate to PowerShell, posting to StackOverflow might find you a better answer if we can't help here.
I am going to close for now; please reopen if this does seem to be a problem in our code.
System Details
Issue Description
I'm running the following script from
git-bash.exe
:I would like to translate this script into a PowerShell script, but the last line gives me some problems. The
foreach
subcommand ofgit submodule
has problems in executing the embedded Bash code.What shell is used by the command, when invoked from PowerShell through PoSh-Git? It doesn't seam to be the bash from within Git's MSYS (MinGW) environment.
These are the reported messages:
The
git-bash
reports the following default shell: