delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/20/13:11:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20001020171047.29474.qmail@web113.yahoomail.com>
Date: Fri, 20 Oct 2000 10:10:47 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Subject: Re: new sh doesn't translate Unix-style paths for Perl?
To: John Pollock <jpollock AT curl DOT com>, cygwin AT sourceware DOT cygnus DOT com
MIME-Version: 1.0

--- John Pollock <jpollock AT curl DOT com> wrote:
> There seems to be a problem in the new sh (1.1.x).  With the old sh, we were
> able to invoke perl scripts directly:
> 
> VINCENTE$ sh
> $ cd
> $ pwd
> /cygdrive/m
> $ ./make-version-info.pl
> make-version-info.pl: You must specify --filename
> 
> But the new sh doesn't seem to accept direct invocations in this style:
> 
> $ pwd
> /cygdrive/m
> $ ./make-version-info.pl
> ./make-version-info.pl: not found
> 
> This would be OK if we could invoke perl directly and then use the script as
> an argument, and we can do this when the perl script is invoked with a
> DOS-style path:
> 
> $ perl m:\make-version-info.pl
> make-version-info.pl: You must specify --filename
> 
> but if you use a Unix style path, it doesn't work:
> 
> $ perl /m/make-version-info.pl
> Can't open perl script "/m/make-version-info.pl": No such file or directory
> 
> Thoughts?

What does the first line of make-version-info.pl look like?  Functionality
shouldn't have changed.

Since you're using a non-Cygwin perl it's not going to understand `perl
/m/foo.pl', you'll have to use `perl m:/foo.pl' and if that doesn't work `perl
m:\\foo.pl' or `perl "m:\foo.pl"' should.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd AT yahoo DOT com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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