Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: zzapper Subject: Re: Question on Perl (.pl) association Date: Wed, 17 Mar 2004 09:44:09 +0000 Lines: 37 Message-ID: References: <18840roaobffn DOT dlg AT thorstenkampe DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com X-Newsreader: Forte Free Agent 1.93/32.576 English (American) 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 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 zzapper (vim, cygwin, wiki & zsh) -- vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?" http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips -- 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/