Cygwin changed CRLF handling in bash shell

Post Reply
Posts: 220
Joined: Thu Jun 09, 2005 1:09 pm
Location: Hanze University of Applied Sciences

Cygwin changed CRLF handling in bash shell

Post by Raj »

The latest releases of cygwin has a new handling of CRLF. If you install NEURON next to cygwin you might run into this problem.

There are two ways to handle this problem:

Remove CRLF from the shell scripts you use. In PSPad this can be done by opening the file and then doing Format->Unix (LF) and then saving the file. Alternatively you can run dos2unix from within Cygwin on the shell scripts. The first shell script to fix will probably be /lib/ and related shell scripts so you can compile your nrnmech.dll.

Remark: Hoc files can be left untouched.

If you have administrator rights you can create a new Windows System Environment variable called SHELLOPTS (Source: ) and set it to igncr. (i.e. ignore carriage return). I haven't read about any succesfull attempts to make bash configuration files modifications to set this global variable, but it might be a triviality for bash gurus.
Post Reply