bash bobbles CR-LF

Doug McIlroy
Sat Feb 23 21:35:00 GMT 2008

Most cygwin utilities gracefully handle text files with lines
terminated by either a bare newline or carriage return-linefeed.
Not so with bash (version 3.2.33(18)-release (i686-pc-cygwin)).
There are various symptoms, but the clearest is that, in
a script with CR-LF terminations, an empty line draws the
diagnostic, "$'\r': command not found".

Doug McIlroy

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list