Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSYS error "rem: command not found"

I am getting this error "rem:command not found" in my batch file. Other dos commands (e.g. echo) are also not found.

My makefile is calling this batch file. This works previously when I am using cygwin. But when I changed to MSYS, I am getting this error. Anyone know why this is?

I am using MSYS version 1.0.17 on a Windows pc. But, I did not install Mingw. Should i install it also?

like image 686
chris yo Avatar asked Jul 01 '26 13:07

chris yo


1 Answers

It looks as though you are trying to run a "Batch" file using Bash. This will not work. While Batch file interprets rem as a comment, Bash simply thinks it is a command and tries to run it.

My suggest would be to rewrite it as a Bash script, perhaps this could be a starting point.

like image 80
Zombo Avatar answered Jul 06 '26 07:07

Zombo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!