2

I need to open msys with an argument such as...

make -f Makefile.blah makefileArg

... so that a mingw32 shell is opened and the command is executed. In the msys bat file, it says that any arguments that aren't options will be passed as bash commands, but this isn't the case. The window just opens and closes, without the command being executed.

What do I need to do to achieve this?

1 Answer 1

3
msys2_shell.cmd -mingw32 -c "make -f Makefile.blah debug=1"

The problem was the lack of a -c to run whatever follows in quotes as commands with arguments (and the quotes, which -c needs).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.