From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7056 invoked by alias); 3 Sep 2003 20:27:46 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 7048 invoked from network); 3 Sep 2003 20:27:45 -0000 Received: from unknown (HELO mailus2.getronics.com) (150.124.55.185) by sources.redhat.com with SMTP; 3 Sep 2003 20:27:45 -0000 Received: from excuswa100.americas.unity ([129.189.10.135]) by mailus2.getronics.com with Microsoft SMTPSVC(5.0.2195.5329); Wed, 3 Sep 2003 16:27:41 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Strange cygpath/Perl 5.8 interaction? Date: Wed, 03 Sep 2003 20:27:00 -0000 Message-ID: <407DF7D68DD30440B5CEB70ED234D1CF02DE1BB8@excuswa100.americas.unity> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Bakken, Luke" To: "Garrison, Jim" , X-OriginalArrivalTime: 03 Sep 2003 20:27:41.0090 (UTC) FILETIME=[D2CE5820:01C37259] X-SW-Source: 2003-09/txt/msg00237.txt.bz2 lukeb@cbinfralxb ~ $ cygpath -w /c/temp | xxd 0000000: 633a 5c74 656d 700a c:\temp. lukeb@cbinfralxb ~ $ echo "\"`cygpath -w /c/temp`\"" | xxd 0000000: 2263 3a5c 7465 6d70 220a "c:\temp". lukeb@cbinfralxb ~ $ perl -e'$a=3D`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.garrison@athensgroup.com] > Sent: Wednesday, September 03, 2003 1:13 PM > To: 'cygwin@cygwin.com' > Subject: Strange cygpath/Perl 5.8 interaction? >=20 >=20 > In bash: >=20 > $ echo "\"`cygpath -w /c/temp`\"" > "c:\temp" >=20 >=20 > But in Perl: >=20 > $a =3D `cygpath -w /c/temp`; > print "|$a|"; >=20 > produces >=20 > |c:\temp > | >=20 > 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? >=20 > Jim Garrison > jhg@athensgroup.com >=20 > -- > 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/ >=20 >=20 -- 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/