delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/19/10:02:17

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 19 Mar 2004 10:01:10 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Martin Gainty <mgainty AT hotmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Question on Perl (.pl) association
In-Reply-To: <Law10-OE30VPyArT7FU000579d5@hotmail.com>
Message-ID: <Pine.GSO.4.56.0403190956380.24444@slinky.cs.nyu.edu>
References: <d47g505k7514fdbq6kkf2rdkomou14q38n AT 4ax DOT com> <j80h509t9tmal5m1iir11n8n3106jvb159 AT 4ax DOT com> <Law10-OE26c0zSwHUAw00002ea2 AT hotmail DOT com> <Pine DOT GSO DOT 4 DOT 56 DOT 0403171445210 DOT 25803 AT slinky DOT cs DOT nyu DOT edu> <ynwndrb5cvgq$.dlg AT thorstenkampe DOT de> <Law10-OE30VPyArT7FU000579d5 AT hotmail DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

Martin,

I believe you're missing the point.  Cygwin's bash is *the same* as any
other Unix bash, with the same features.  Whatever procedure was used to
associate .pl files with perl on Unix should also work on Cygwin.

One reason I can think of for bash not working the same is if different
configure options were used to build it on the Unix platform you used and
on Cygwin.  If so, please find out what the configure options on the Unix
platform were, and post them here.  It might be deemed useful enough to
change the build options for Cygwin's bash.
	Igor
P.S. Please try not to quote raw e-mail addresses in your replies.

On Fri, 19 Mar 2004, Martin Gainty wrote:

> Thorsten (et al):
> I have the greatest respect for the incredible job that the CYGWIN
> maintainers have done with BASH shell.
> But the last time I used a bash shell on a Unix platform I was able to setup
> the .pl to perl association but I cannot within CYGWIN..this is a nice to
> have feature which I would  prefer to boost to a "must have" feature
> Vielen Dank,
> ~Martin~
>
> ----- Original Message -----
> From: "Thorsten Kampe" <thorsten<at>thorstenkampe<dot>de>
> To: <cygwin<at>cygwin<dot>com>
> Sent: Friday, March 19, 2004 9:39 AM
> Subject: Re: Question on Perl (.pl) association
>
>
> > * Igor Pechtchanski (2004-03-17 20:51 +0100)
> > > Again, since you have no such restrictions, simply change the '#!' line at
> > > the top of your .pl files to '#!/usr/bin/perl -w' (or add it at the very
> > > top if it isn't there).  This should be enough to allow you to invoke .pl
> > > files (or any other files, for that matter) from Cygwin shells using perl
> > > (after appropriately 'chmod +x'ing them, of course).
> >
> > Another possibility would be to use a decent shell, hehehe:
> >
> > ,---
> > | New features between zsh versions 4.0 and 4.2
> > | ---------------------------------------------
> > |
> > | Syntax and builtins:
> > | - Suffix aliases allow the shell to run a command on a file by suffix,
> > |   e.g `alias -s ps=gv' makes `foo.ps' execute `gv foo.ps'.  Supplied
> > |   function zsh-mime-setup uses existing mailcap and mime.types files
> > |   to set up suitable aliases.  Supplied function pick-web-browser is
> > |   suitable for finding a browser to show .html etc. files by suffix alias.
> > `---
> >
> > Thorsten

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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