I'm trying to run MinGW's MSYS bash from Windows with a command in its arguments, and it's achievable with the -c switch. For example:
C:\MinGW\msys\1.0> bin\bash -c "times"
0m0.000s 0m0.046s
0m0.000s 0m0.000s
C:\MinGW\msys\1.0>
With this command, bash will run, execute 'times', and exit.
Is it possible to do the same thing, but staying in a bash command line instead of exiting it?
Try:
C:\MinGW\msys\1.0> bin\bash -c "times;/c/MinGW/msys/1.0/bin/bash"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With