Bash 3.1.17(8) CR/LF problem

Eric Blake ebb9@byu.net
Fri Sep 29 03:27:00 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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:
> 
> #!/bin/sh
> 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
workable.

Maybe I'll look into adding a new shopt instead.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
volunteer cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFHJKx84KuGfSFAYARAjFsAKCnLDZ7k57oA+POoPFdExgcrUAebgCeOVa9
SVtELbvRPtuLmABDZoDcL6Q=
=D1Op
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list