delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Sun, 22 Apr 2007 19:06:09 +0200 |
From: | Samuel Thibault <samuel DOT thibault AT ens-lyon DOT org> |
To: | cygwin AT cygwin DOT com |
Subject: | \r in variables and test |
Message-ID: | <20070422170609.GV7781@interface.famille.thibault.fr> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
User-Agent: | Mutt/1.5.12-2006-07-14 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |