[U-Boot] [PATCH 2/2] beagle: handle import of environments in files with CRLF as line endings

Wolfgang Denk wd at denx.de
Sun May 13 21:26:19 CEST 2012


Dear Marek Vasut,

In message <201205132057.47247.marex at denx.de> you wrote:
> 
> > It's not a problem of using broken tools - the problem is of ignorant
> > people _not_ using decade old, working tools like dos2unix if they
> > need them.
> 
> tr -d '\r' won't work? :-)

Not as well - it will delete _all_ ocurrences of \r, which is more
than just changing "\r\n" into "\n" (which still may be wrong in some
cases).

But yes, TIMTOWTDI.

> Can't the wincrap people be taught to use cygwin? Or possibly some Windows (R)
> (C)(TM)(???) rebuilt version of tr -d '\r' ?

Do you care?


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A conservative is a man with two perfectly good legs  who  has  never
learned to walk.                              - Franklin D. Roosevelt


More information about the U-Boot mailing list