Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: Soren A <somian@adelphia.net>
Subject: Re: example needed pls: `cygpath -c <HANDLE>'
Date: Tue, 1 Jul 2003 21:34:56 +0000 (UTC)
Organization: Occasionally Sporadically
Lines: 46
Message-ID: <Xns93ABB2F0BC0D8soren1Gmane@80.91.224.249>
References: <Xns93A88A37D41F9soren1Gmane@80.91.224.249> <122777579059.20030629121701@familiehaase.de> <20030701032556.GB7604@ny-kenton2a-710.buf.adelphia.net> <3F014678.1000809@attglobal.net>
X-Complaints-To: usenet@main.gmane.org
User-Agent: Xnews/L5
X-Archive: encrypt

Doug VanLeuven <roamdad@attglobal.net> wrote around 01 Jul 2003 
news:3F014678.1000809@attglobal.net:

> Just goes to show.
> I didn't want to get into asp but I created this wsh file
> checkpath.wsf
> -------------------------------
> <Job ID="CheckPath">
> <script language=PerlScript>
>     $MS_path_filename="c:\\bin\\gzip.exe";
>    
>         $WScript->Echo("$MS_path_filename");
>     open(CTH, '-|', "D:/cygwin/bin/cygpath $MS_path_filename")
>         or die $WScript->Echo("Could not open() call to 'cygpath', what 
> is up?");
>     $cygstyle_path = <CTH>;
>     chomp $cygstyle_path;   
>     $WScript->Echo("A" . "$cygstyle_path" . "B");
> </script>
> </Job>
> ------------------------------
> pretty much your original post.
> I'm finding it only works with AS perl 5.8.0.805.

That's the version I have been trying this on. Confusing.

> In 5.6.1.633 the return value is empty but 5.8 works as expected.

Hmmm.

> I tried this first with cygwin 1.3.21 & 1.3.22 and
> before & after upgrading to 5.6 windows script host.
> Can't blame cygwin

So! Oooo-Kay! Wow, that's an amazing result. It seems there's a major
wonkiness afoot, but AFAICT I must agree, it seems that "cygpath" is
blameless here. 

Now we know (and have a major headache-generator available for future use 
should such a mystery demand further investigation).

-- 
"So, tell me, my little one-eyed one, on what poor, pitiful,
defenseless planet has my MONSTROSITY been unleashed?"
                       - Dr. Jumba, Disney's "Lilo & Stitch"
OpenPGP Key at http://savannah.gnu.org/people/viewgpg.php?user_id=6050


--
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/

