delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/12/13:51:06

X-Spam-Check-By: sourceware.org
Date: Fri, 12 Jan 2007 13:50:36 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Kevin T Cella <kcella AT nycap DOT rr DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: activestate perl on cygwin
In-Reply-To: <00d701c73646$7d628e10$7827aa30$@rr.com>
Message-ID: <Pine.GSO.4.63.0701121349280.17383@access1.cims.nyu.edu>
References: <000301c733a2$28c29db0$7a47d910$@rr.com> <Pine DOT GSO DOT 4 DOT 63 DOT 0701100857580 DOT 6616 AT access1 DOT cims DOT nyu DOT edu> <006901c73528$574b11d0$05e13570$@rr.com> <eo4fat$7v0$1 AT sea DOT gmane DOT org> <009701c7357f$4b05f9b0$e111ed10$@rr.com> <eo5fer$f6e$1 AT sea DOT gmane DOT org> <00af01c735f2$43713980$ca53ac80$@rr.com> <eo77ee$bqv$1 AT sea DOT gmane DOT org> <00d701c73646$7d628e10$7827aa30$@rr.com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Fri, 12 Jan 2007, Kevin T Cella wrote:

> > Although this is thorough off topic, perhaps you can explain it better
> > to me as I don't use ActiveState therefore I don't see what you are
> > claiming. Exactly which "full path" is expanded to "what" and passed to
> > (guess) ActiveState Perl interpreter as, again, what? Is it $0 that you
> > speak of that may be a Cygwin path? I'm confused however if it is $0
> > then why couldn't that also be handled in the Perl script?
>
> The error is as follows:
>
> [~] $ myscript.pl
> Can't open perl script "/home/kcella/bin/myscript.pl": No such file or
> directory
>
> [~] $ ls -l /home/kcella/bin/myscript.pl
> -rwxr-xr-x 1 kcella None 651 Jan 12 07:33 /home/kcella/bin/myscript.pl

That particular case is handled by the wrapper script I posted.  Note that
you *don't* need to use the wrapper script to invoke perl on the command
line -- only in the #! (shebang) line of your script file.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

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