This is the mail archive of the
mailing list for the Cygwin project.
Re: bash bobbles CR-LF
-----BEGIN PGP SIGNED MESSAGE-----
According to Doug McIlroy on 2/22/2008 12:14 PM:
| 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".
And this is intentional, since by default, cygwin emulates Linux, and bash
on Linux doesn't ignore CR. Reread the announcement (and consider using
d2u or enabling the shell option igncr to overcome the default).
Don't work too hard, make some time for fun as well!
Eric Blake firstname.lastname@example.org
volunteer cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html