0

I have a bash script under Git version control on Windows (cygwin git).

I would like checkout file from repo with LF (it is bash script) on windows (and I have core.autocrlf=true). As a result, I've got CRLF file and "$'\r': command not found" error message for script. How I could workaround this issue?

BR

k84d
  • 1
  • 1

1 Answers1

0

Set the igncr option for your bash shell.

Carl Norum
  • 219,201
  • 40
  • 422
  • 469
  • Yes, "igncr" could help. Additional info: http://lists-archives.org/cygwin/59110-bash-igncr-and-bash_env-was-bash-igncr-documentation-where.html – k84d Oct 05 '10 at 16:56