www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/16/17:40:32

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: Tue, 16 Mar 2004 23:39:58 +0100
Lines: 22
Message-ID: <18840roaobffn.dlg@thorstenkampe.de>
References: <Law10-OE29sNQptgFrY00005ded AT hotmail DOT com>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: isi-dialin-129-215.isionline-dialin.de
User-Agent: 40tude_Dialog/2.0.10.1de

* 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).

> When I invoke CYGWIN in order to execute a Perl Script I need to state
>  perl whatever.pl
> I would like to place an association for .pl to the Cygwin Perl Interpreter
> so when I invoke
> whatever.pl
> the associated Cygwin Perl interpreter will be invoked to interpret the
> script

You're confusing Windows and Unix semantics. There's never been such a
thing as an association between a file extension and an
application/interpreter in Unix/Cygwin.

You might be looking for a "she bang" which does something similar.

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/

- Raw text -


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