From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8430 invoked by alias); 3 Sep 2003 20:30:13 -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 8422 invoked from network); 3 Sep 2003 20:30:12 -0000 Received: from unknown (HELO redhat.com) (66.187.230.200) by sources.redhat.com with SMTP; 3 Sep 2003 20:30:12 -0000 Received: by redhat.com (Postfix, from userid 201) id 4528732A822; Wed, 3 Sep 2003 16:30:12 -0400 (EDT) Date: Wed, 03 Sep 2003 20:30:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: Strange cygpath/Perl 5.8 interaction? Message-ID: <20030903203012.GA19080@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <732AC39DA54C1C4FBCBCC2F853D3AB816D16F9@athensgroup-pc9.athensgroup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <732AC39DA54C1C4FBCBCC2F853D3AB816D16F9@athensgroup-pc9.athensgroup.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-09/txt/msg00238.txt.bz2 On Wed, Sep 03, 2003 at 03:13:01PM -0500, Garrison, Jim wrote: >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? I don't see anything unforeseen about the above behavior. Substitute /bin/echo for the cygpath above and you'll see the same behavior on UNIX. cgf -- 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/