This is the mail archive of the
mailing list for the Cygwin project.
Re: Bash 3.1.17(8): Scripts on textmode mount get problems with CR characters
- From: Eric Blake <ebb9 at byu dot net>
- To: "Bruun, Peter Michael (HP C&I CME OSS CoE)" <peter-michael dot bruun at hp dot com>, cygwin at cygwin dot com
- Date: Wed, 25 Oct 2006 06:04:58 -0600
- Subject: Re: Bash 3.1.17(8): Scripts on textmode mount get problems with CR characters
- References: <93C4769E3BED6B42B7203BD6F065654C0831DEB0@dmoexc01.emea.cpqcorp.net>
- Reply-to: cygwin at cygwin dot com
-----BEGIN PGP SIGNED MESSAGE-----
http://cygwin.com/acronyms/#PPIOSPE - redirecting to the list.
According to Bruun, Peter Michael (HP C&I CME OSS CoE) on 10/25/2006 1:18 AM:
> Hello Eric,
> Thanks for the thorough explanation.
> Yes, the missing handling of CRLF in `` and $() is the point of my
> message - these should understand the igncr setting.
> Adding d2u is a cludge - I am working in a cross-platform environment
> and I do not have d2u on all platforms. I could define it as a dummy
> shell-function, but I don't want my Unix scripts to be unnecessarily
> polluted by such things. I believe it is an essential part of the
> purpose of Cygwin is to hide Windows specific detals, and so having to
> pollute my scripts in this way defies the purpose of Cygwin.
> Adding --text to cat is similarly a cludge and would not be portable to
> native Unix platforms.
> For now, setting IFS sounds like the best option, but as far as I can
> see, it does not affect command substitution either (at the moment of
> writing I only have access to bash-3.1-6).
> In some contexts I already do white-space normalization using something
> like this:
> F=`echo \`cat f.txt\``
> With IFS set, this will work, but the method is only correct if f.txt
> does not contain significant white-space other than single blank
> So I am looking forward to bash-3.2-4 with igncr support in command
> substitution. When do you think, it will be around?
> Best regards,
> Peter Michael Bruun (HP C&I CME OSS CoE)
Life is short - so eat dessert first!
Eric Blake firstname.lastname@example.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v126.96.36.199 (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