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: Fixing the state of C++ in Cygwin


> > The cause of this is apparently /tmp being a textmode mount.  If
> > switched to binary, cat << EOF works as expected.  Is that really what's
> > supposed to happen?  It doesn't seem right that a system configured to
> > act binmode is going textmode just due to using '<< EOF' syntax.
> 
> That sounds like a bash bug to me.  The type of mount of /tmp should not
> affect "heredoc"s.

For here-docs inside complex commands, bash uses /tmp to create a
temporary file holding the here-doc contents.  I will look into forcing
bash to use binary mode on temp files - expect a new release soon
(and I was just about ready to upload bash-3.1-5 when my hard drive
crashed yesterday; so when I respin it, I will make sure I catch this
issue.  Fortunately, I did not lose very mush else).  Thanks for the
diagnosis of the problem!

-- 
Eric Blake
volunteer cygwin bash maintainer

--
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/


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