Bash 3.1.17(8) CR/LF problem
Fri Sep 29 03:27:00 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
According to Eric Blake on 9/27/2006 7:14 PM:
> By the way, there is another option that has not been mentioned in this
> thread yet:
> Make the first lines of your script read as follows:
> IFS=' '' ''
> ' # Yes, that was a space, tab, and line ending
I retract this suggestion. On further investigation, bash currently does
not treat \r as an IFS whitespace character, and the hacks to the source
to make this happen are too invasive for my liking. Adding \r to IFS will
impact your script, but the impact is incomplete, and it does not ignore
\r at the end of all lines.
Sorry if this false path wasted your time. But a text mount is still
Maybe I'll look into adding a new shopt instead.
Life is short - so eat dessert first!
Eric Blake email@example.com
volunteer cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v220.127.116.11 (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
More information about the Cygwin