This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bash 3.1.17(8): Scripts on textmode mount get problems with CR characters

Hash: SHA1 - 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
> characters.
> So I am looking forward to bash-3.2-4 with igncr support in command
> substitution. When do you think, it will be around?

Yesterday evening.

> Best regards,
> Peter Michael Bruun (HP C&I CME OSS CoE)

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

Eric Blake   
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]