delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
X-MimeOLE: | Produced By Microsoft Exchange V6.0.6375.0 |
content-class: | urn:content-classes:message |
MIME-Version: | 1.0 |
Subject: | RE: Strange cygpath/Perl 5.8 interaction? |
Date: | Wed, 3 Sep 2003 13:27:39 -0700 |
Message-ID: | <407DF7D68DD30440B5CEB70ED234D1CF02DE1BB8@excuswa100.americas.unity> |
X-MS-Has-Attach: | |
X-MS-TNEF-Correlator: | |
From: | "Bakken, Luke" <Luke DOT Bakken AT getronics DOT com> |
To: | "Garrison, Jim" <jim DOT garrison AT athensgroup DOT com>, <cygwin AT cygwin DOT com> |
X-OriginalArrivalTime: | 03 Sep 2003 20:27:41.0090 (UTC) FILETIME=[D2CE5820:01C37259] |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id h83KRxH22661 |
lukeb AT cbinfralxb ~ $ cygpath -w /c/temp | xxd 0000000: 633a 5c74 656d 700a c:\temp. lukeb AT cbinfralxb ~ $ echo "\"`cygpath -w /c/temp`\"" | xxd 0000000: 2263 3a5c 7465 6d70 220a "c:\temp". lukeb AT cbinfralxb ~ $ perl -e'$a=`cygpath -w /c/temp`;print "\"$a\""' | xxd 0000000: 2263 3a5c 7465 6d70 0a22 "c:\temp." I'd say something was up with echo/bash, not with perl. > -----Original Message----- > From: Garrison, Jim [mailto:jim DOT garrison AT athensgroup DOT com] > Sent: Wednesday, September 03, 2003 1:13 PM > To: 'cygwin AT cygwin DOT com' > Subject: Strange cygpath/Perl 5.8 interaction? > > > In bash: > > $ echo "\"`cygpath -w /c/temp`\"" > "c:\temp" > > > But in Perl: > > $a = `cygpath -w /c/temp`; > print "|$a|"; > > produces > > |c:\temp > | > > I.e., Perl sees an extra \n at the end of the string. I looked at > the source for cygpath and it doesn't seem to be adding a \n, so > I suspect the problem is an unforeseen interaction between Cygwin > and Perl's backtick operator. Can anyone shed light on this topic? > > Jim Garrison > jhg AT athensgroup DOT com > > -- > 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/ > > -- 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 |