delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/30/23:57:50

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
Date: Mon, 30 Jun 2003 23:57:42 -0400
To: cygwin AT cygwin DOT com
Subject: Re: example needed pls: `cygpath -c <HANDLE>'
Message-ID: <20030701035742.GD7604@ny-kenton2a-710.buf.adelphia.net>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Xns93A88A37D41F9soren1Gmane AT 80 DOT 91 DOT 224 DOT 249> <3EFE120B DOT 58A0C79E AT dessent DOT net>
Mime-Version: 1.0
In-Reply-To: <3EFE120B.58A0C79E@dessent.net>
User-Agent: Mutt/1.3.28i
From: somian AT adelphia DOT net (Soren Andersen)

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.

  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/

- Raw text -


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