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] |
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?
* use Cygwin Python * change the Python script to output \n instead of \r\n * [ $foo = $'True\r' ] * [ ${foo/%$'\r'/} = True ]
-- 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] |