Script broken after updating bash to 4.3.46-7?

cyg Simple cygsimple@gmail.com
Tue Aug 30 18:21:00 GMT 2016


On 8/29/2016 2:30 PM, Eric Blake wrote:
> 
> Simplest fix:
> 
> read ... < <(mysql ... | dos2unix)
> 

This will break when the data returned by mysql is supposed to contain \r.

> There. Now you aren't feeding \r to read in the first place.
> 

But you might want to feed \r to read.  It isn't a fix, it is a
potential work around dependent on the data set results.  If a read that
is supposed to be reading binary data doesn't pass all of the data to
the routine then it is broken.

-- 
cyg Simple

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



More information about the Cygwin mailing list