delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/01/17:35:58

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-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Soren A <somian AT adelphia DOT 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 AT 80 DOT 91 DOT 224 DOT 249> <122777579059 DOT 20030629121701 AT familiehaase DOT de> <20030701032556 DOT GB7604 AT ny-kenton2a-710 DOT buf DOT adelphia DOT net> <3F014678 DOT 1000809 AT attglobal DOT net>
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Xnews/L5
X-Archive: encrypt

Doug VanLeuven <roamdad AT attglobal DOT net> wrote around 01 Jul 2003 
news:3F014678 DOT 1000809 AT attglobal DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019