This is the mail archive of the
mailing list for the Cygwin project.
Re: example needed pls: `cygpath -c <HANDLE>'
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 01 Jul 2003 05:37:16 -0700
- Subject: Re: example needed pls: `cygpath -c <HANDLE>'
- Organization: My own little world...
- References: <Xns93A88A37D41F9soren1Gmane@18.104.22.168> <3EFE120B.58A0C79E@dessent.net> <20030701035742.GD7604@ny-kenton2a-710.buf.adelphia.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:
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html