delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/01/08:37:26

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
Message-ID: <3F01807C.F852E377@dessent.net>
Date: Tue, 01 Jul 2003 05:37:16 -0700
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
X-Accept-Language: en,en-US
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: example needed pls: `cygpath -c <HANDLE>'
References: <Xns93A88A37D41F9soren1Gmane AT 80 DOT 91 DOT 224 DOT 249> <3EFE120B DOT 58A0C79E AT dessent DOT net> <20030701035742 DOT GD7604 AT ny-kenton2a-710 DOT buf DOT adelphia DOT net>

Soren Andersen wrote:
> 
> On Sat, Jun 28, 2003 at 03:09:15PM -0700, Brian Dessent wrote:
> > I was playing around with this because it seems like a handy idea.
> > I use Cywin perl, but the differences shouldn't be very great.  Anyway,
> > I came up with the following oneliner that does what you mention above
> > (passed %1 as a Windows filename, it copies the Cygwin version to the
> > clipboard)
> 
> > c:\cygwin\bin\perl.exe -MWin32::Clipboard -e "my $f=quotemeta('%1'); chomp (my $c=qx!cygpath -u $f!); Win32::Clipboard($c);"
> 
> How on earth did you get Win32::Clipboard (or Win32::<anything>) to run
> under CygPerl, Brian? The Win32:: namespace code is incomatible with
> cygwinperl, any module using such cannot be built to cygwinperl AFAIK.

It took a bit of work, but the perl5-porters mailing list had enough
nuggets to get it going.  I wrote up the steps here:

http://www.dessent.net/patk/archives/000035.shtml

Brian

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