mono / sdb

A command line client for the Mono soft debugger.
https://www.mono-project.com
MIT License
116 stars 44 forks source link

Invalid string to bash in env #38

Closed manio143 closed 7 years ago

manio143 commented 7 years ago

I'm not really sure what is the reason but here's what's happening:

  1. cloned the repo
  2. make && sudo make install
  3. run sdb

Then I get the following

/usr/bin/env: ‘bash\r’: No such file or directory

I'm using mono on Linux Mint and my suspicion is that this is a problem with line endings, given Windows's \r\n and Unix's \n.

manio143 commented 7 years ago

Ok, I found the solution. It's about all git projects really. When core.autocrlf is set to true then git clones all repos with CRLF even on linux, which obviously breaks stuff. To fix that one has to change it to core.autocrlf = input (may need manuall .gitconfig alteration).