delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/18/19:56:29

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
From: "Matthew O. Persico" <matthew DOT persico AT verizon DOT net>
To: <cygwin AT cygwin DOT com>
Date: Thu, 18 Mar 2004 19:56:10 -0500
Message-ID: <2004318195610.023504@mopxp>
In-Reply-To: <bb991vwz5y4v.dlg@thorstenkampe.de>
Subject: Re: Re: Question on Perl (.pl) association
Mime-Version: 1.0
X-Authentication-Info: Submitted using SMTP AUTH at out009.verizon.net from [162.83.204.141] at Thu, 18 Mar 2004 18:56:02 -0600
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i2J0uSWm020018

On Wed, 17 Mar 2004 14:21:52 +0100, Thorsten Kampe wrote:
> * Martin Gainty (2004-03-17 12:59 +0100)
>> I this solution works on windows
>
>> But how do we get .pl association with CYGWIN Perl?
>
> I already answered this question. Let me explain it more simply: it
> can't be done with Cygwin; it has to be done in Windows. It won't
> benefit you "in Cygwin" (except for "cygstart").
>
> assoc /?
> ftype /?
> associate /?

And the really sick part is if you type

	ftype /?

the help text says, among other things:

" gets the 1st parameter, %3 the second, etc.  %~n gets all the remaining
parameters starting with the nth parameter, where n may be between 2 and 9,
inclusive.  For example:

    ASSOC .pl=PerlScript
    FTYPE PerlScript=perl.exe %1 %*

would allow you to invoke a Perl script as follows:

    script.pl 1 2 3"

I find it very funny that MS software is exampling one of the ultimate Open Source products!

--
Matthew O. Persico



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