This is the mail archive of the
cygwin
mailing list for the Cygwin project.
\r in variables and test
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: cygwin at cygwin dot com
- Date: Sun, 22 Apr 2007 19:06:09 +0200
- Subject: \r in variables and test
Hi,
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.
Is there a nice way around this?
Samuel
--
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/