betweenGo

Cygwin Bash cannot execute DOS formatted scripts

by on Mar.07, 2007, under Cygwin, Windows

As of bash 3.2.9-10, bash no longer executes DOS formatted scripts as detailed in this announcement. I understand the reasoning for this is that:

  1. cygwin is supposed to mimic Linux, not Windows
  2. it is faster to assume that the scripts are in UNIX format

To get around this restriction I did what was recommended in this bug report, i.e. I created a Windows user environment variable named “SHELLOPTS” with the value “igncr”.

Share

Related posts:

  1. Cygwin Bash Scripts and Java
  2. Shell Scripts with Windows LF’s Fail in Latest Cygwin
  3. Maven Assembly Convert Shell Scripts to use UNIX LF’s
  4. Unable to start Cygwin shell from Windows command prompt
  5. Moving Your Cygwin Installation


Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!