Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 30 Jun 2003 23:25:56 -0400 To: cygwin AT cygwin DOT com Subject: Re: example needed pls: `cygpath -c ' Message-ID: <20030701032556.GB7604@ny-kenton2a-710.buf.adelphia.net> Mail-Followup-To: cygwin AT cygwin DOT com References: <122777579059 DOT 20030629121701 AT familiehaase DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <122777579059.20030629121701@familiehaase.de> User-Agent: Mutt/1.3.28i From: somian AT adelphia DOT net (Soren Andersen) On Sun, Jun 29, 2003 at 12:17:01PM +0200, Gerrit P. Haase wrote: > Hallo Soren, > you also wrote: > > I am trying to finish a test script that uses ActivePerl to call `cygpath` > > {... stuff ...} > > open(CTH, '-|', "C:/cygwin/bin/cygpath $MS_path_filename") > > or die "Could not open() call to 'cygpath', what is up?"; > > $cygstyle_path = ; > > chomp $cygstyle_path; > > {... stuff ...} > > #!/bin/perl > > $MS_path_filename = 'H:\bin'; > $MS_path_filename = quotemeta($MS_path_filename); > open(CTH, '-|', "H:/bin/cygpath $MS_path_filename") > or die "Could not open() call to 'cygpath', what is up?"; > $cygstyle_path = ; > chomp $cygstyle_path; > > print "$cygstyle_path\n"; > > # SCRIPT_END {Gerrit's output} > $ /bin/soren_problem.pl > /bin > What is the problem? See my original message please! What I was asking for was an explanation of the cygpath flag -c . I know the code above works, it ran for me too. First of all you aren't reproducing the conditions of the test: NOT CygPerl, but Win32Perl (AS Perl); secondly NOT on the console/terminal commandline but in a WSH script (the code is executed when the "hooks" built in to WSH which know how to call AS Perl, do so); and lastly I am not asking for readers to reproduce the test (because it might be onerous to do so, because they've never used WSH or don't have AS Perl installed, but if someone does have a system which meets those criteria I'd be mightily obliged if they would try). I am just trying to understand what it might be about "cygpath" that it cannot output anything under *these* conditions. Or find out whatever there is to find out. Thanks Gerrit! Soren A. -- See my OpenPGP key at http://savannah.gnu.org/people/viewgpg.php?user_id=6050 GnuPG public key fingerprint | "Only when efforts to reform society have as BD26 A5D8 D781 C96B 9936 | their point of departure the reformation of 310F 0573 A3D9 4E24 4EA6 | the inner life -- human revolution -- will they lead us with certainty to a world of lasting peace and true human security." -- Daisaku Ikeda -- 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/