delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/11/09:36:15

X-Spam-Check-By: sourceware.org
Date: Thu, 11 Jan 2007 09:35:50 -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: <009701c7357f$4b05f9b0$e111ed10$@rr.com>
Message-ID: <Pine.GSO.4.63.0701110931320.6616@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>
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 Thu, 11 Jan 2007, Kevin T Cella wrote:

> [snip]
> I'm asking for the short term solution.
>
> > Answers were provided to you. Apparently they don't tickle your fancy.
> > People have commented on that wrapper script that you posted. I still
> > don't see what your problem is. If your Perl script expects
> > C:\mydir\foo.dat then give it C:\mydir\foo.dat. Of course you'll need to
> > do that under a cmd shell or, for Cygwin's bash shell you'll need to
> > double the backslashes (C:\\mydir\\foo.dat) or use forward slashes
> > (C:/mydir/foo.dat). If you insist on giving your Perl script
> > /cygdrive/c/mydir/foo.dat then perhaps your Perl script should expect
> > that and translate it. A quick Perl subroutine to do that shouldn't be
> > that hard to code.
>
> Other posts have indicated how this is not possible. Executing a script
> That appears in my $PATH will automatically expand using cygwin style
> pathing. Answers were provided, but not to my original question. I still
> have no way to execute the command below and a regular script on cygwin
> using Activestate.
>
> perl -e 'print join "\n", @INC, "\n";'

As you've noted yourself in the paragraph above, you only need the wrapper
script to transform the script name from POSIX path style to Win32 style,
and only if it's in the #! (shebang) line of a perl script.  That was what
my wrapper script was designed to do (as shown by the example usage).
You do NOT need a wrapper to run the command above -- just invoke
ActiveState perl directly.
	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