\r in variables and test

Brian Dessent brian@dessent.net
Sun Apr 22 18:06:00 GMT 2007


Samuel Thibault wrote:

> In a ./configure script, I call a test program (native python, actually)
> that outputs "True\r\n" and I put this result in variable foo. The
> problem is that [ "$foo" = True ] doesn't return true because foo
> actually contains True\r, not True.

$foo=$(python command | d2u)

Brian

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



More information about the Cygwin mailing list