Aha, if you use Cygwin and you have a version control system that keeps adding \r\n in your Bash scripts, you can…

Aha, if you use Cygwin and you have a version control system that keeps adding \r\n in your Bash scripts, you can work around via these .bashrc lines:

export SHELLOPTS

set -o igncr

Inelegant, but so much easier than fighting with the VCS.

http://chess.eecs.berkeley.edu/softdevel/faq/5.html