What's the Bash equivalent of "cmd /c"

Solution 1:

The Bash equivalent is bash -c <command>. This information is easily found in the man page.

This, for example, is what is used when you enter a custom command for a SSH session.

Now, you do need to keep in mind that Bash is not a Windows shell. If <command> is located in your working directory, you need to invoke it as ./<command>.

If you just toss it the file as the first argument, Bash will try to execute it as a Bash script.

Also, if you really want Bash, use bash. sh could be anything.

Solution 2:

End the command with a & like this

sh.exe MyApplication.exe &