-
Notifications
You must be signed in to change notification settings - Fork 66
ml errors when run in cygwin #504
Comments
Since you are in a windows environment, can you not run the .bat file? I've seen the same error in an cygwin install and I found that I could just run ./ml.bat local deploy modules |
I can run the .bat file. I just find this behavior curious because I've run
|
Simple question, but curious: Does this happen when you clone the repository, or otherwise grab the current master or dev branch copy of I ask because I've been using a copy of Roxy of indeterminate date and I get the carriage return error. But, I just cloned the current repo and, using cygwin, do not get an error. (I'm assuming 'yes'; just covering the bases.) |
I had the issue as well and decided (sadly) not to use roxy with cygwin.
Maybe crlf could be applied only in sepcific files [2]. [1] - https://help.github.com/articles/dealing-with-line-endings/ |
Thanks for reporting. I had trouble running Roxy properly in Windows as well. I also tried tools like gitbash, but that seems to fall short as well.. |
Learned how to fix this for my mlvagrant project, I'll add a .gitattributes for this as soon as I get to it! |
Fixed #504: added eol=lf setting for ml script, and touched it
Fixed in dev.. |
Running roxy on cygwin on WIndows 7. When I issued an
ml
command I got the following error:ml: line 17: $'\r': command not found
ml: line 20: syntax error near unexpected token``$'\r''
'l: line 20:```usage()
Some googling told me that this is a problem with unix vs. windows line ending/carriage returns. When I applied
dos2unix ml
theml
program ran just fine. However, every time it generates a newml
program for a new project the problem came back.Some other searching suggested that setting a Windows System Environment Variable of
SHELLOPTS=igncr
would address this issue. However, I still get the error when the project specific clonedml
gets generated.I seem to recall that when I installed cygwin I was asked how I want to handle carriage returns but I don't know what setting I chose or how to adjust this.
Any help is appreciated.
The text was updated successfully, but these errors were encountered: