使用bash命令作为参数启动msys mingw32 shell

问题描述 投票:0回答:2

我需要使用诸如...之类的参数打开 msys

make -f Makefile.blah makefileArg

...这样就打开了 mingw32 shell 并执行命令。在 msys bat 文件中,它表示任何不是选项的参数都将作为 bash 命令传递,但事实并非如此。窗口只是打开和关闭,而不执行命令。

我需要做什么才能实现这一目标?

bash shell arguments mingw32 msys
2个回答
2
投票
msys2_shell.cmd -mingw32 -c "make -f Makefile.blah debug=1"

问题是缺少 -c 来运行引号中的任何内容作为带参数的命令(以及 -c 需要的引号)。


0
投票

msys2_shell.cmd -mingw32 -c "make -f Makefile.blah debug=1" 这对你有用吗?

© www.soinside.com 2019 - 2024. All rights reserved.