delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/17/12:26:16

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: zzapper <david AT tvis DOT co DOT uk>
Subject: Re: Question on Perl (.pl) association
Date: Wed, 17 Mar 2004 17:24:25 +0000
Lines: 37
Message-ID: <f42h50l87sa4akebn4b4cgop64f53qrc3v@4ax.com>
References: <d47g505k7514fdbq6kkf2rdkomou14q38n AT 4ax DOT com> <j80h509t9tmal5m1iir11n8n3106jvb159 AT 4ax DOT com> <Pine DOT GSO DOT 4 DOT 56 DOT 0403171204530 DOT 25803 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
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 Wed, 17 Mar 2004 12:12:17 -0500 (EST),  wrote:

>On Wed, 17 Mar 2004, zzapper wrote:
>

>>
>> #!/bin/bash
>> # tipftp
>> # description :Wrap for tipftp.pl
>> c:/usr/local/bin/perl c:/cygwin/usr/local/bin/tipftp.pl
>>

>
>--------------------- BEGIN /usr/local/bin/wrap ---------------------
>#!/bin/sh
>pname="$1"
>fname="`cygpath -wi "$2"`"
>shift 2 && exec "$pname" "$fname" "$@"
>------- Warning: cutting here may damage your screen surface --------
>
>and then use it in the '#!' line of your script, e.g.,
>
>------------------------ BEGIN activeperl.pl ------------------------
>#!/usr/local/bin/wrap /cygdrive/c/ActivePerl/bin/perl
Igor,
That's a nice technique, but my particular problem is that I develop
perl scripts for distant webservers, which have Perl installed in
various places, so I want to leave the shebang untouched, but still
find the right Perl on my PC.


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/

- Raw text -


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