delorie.com/archives/browse.cgi | search |
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 |
To: | cygwin AT cygwin DOT com |
From: | Thorsten Kampe <thorsten AT thorstenkampe DOT de> |
Subject: | Re: Question on Perl (.pl) association |
Date: | Wed, 17 Mar 2004 14:21:36 +0100 |
Lines: | 38 |
Message-ID: | <19d2czqokdaez.dlg@thorstenkampe.de> |
References: | <Law10-OE29sNQptgFrY00005ded AT hotmail DOT com> <18840roaobffn DOT dlg AT thorstenkampe DOT de> <d47g505k7514fdbq6kkf2rdkomou14q38n AT 4ax DOT com> |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | isi-dialin-129-151.isionline-dialin.de |
User-Agent: | 40tude_Dialog/2.0.10.1de |
* zzapper (2004-03-17 10:44 +0100) > On Tue, 16 Mar 2004 23:39:58 +0100, wrote: >>* Martin Gainty (2004-03-16 21:56 +0100) >>> How does one associate CYGWIN Perl with .pl extensions within CYGWIN >>> environment? >> >> Same as in the Windows environment: "ftype" in connection with "assoc" >> (or more convenient with "associate" from the ResourceKit). >> > On MKS I used to have this in a setup script .profile > > (ftype is builtin to Windows Command) > > ftype Perl 'c:/usr/local/bin/perl.exe "%1" %*' > > The advantage of FTYPE is that it allows you to specify which Perl you > want used (when you might have several installed, and also to ignore > the shebang which might be set for a distant server The /disadvantage/ of "ftype" is that you cannot use it on its own. First you have to create an association between the extension and a "file type" with "assoc" and then an association between the file type and the executable. "associate" let's you skip the first step. > Better I could use Windows Environment variable PATHEXT > >>echo $PATHEXT > .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.php;.pl > > so that I could call a perl script hello.pl > > just with "hello" > > Haven't got this to work with CYG I don't think this can be done. Thorsten -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |