This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Question on Perl (.pl) association
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/