delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/23/08:47:28

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: <17B78BDF120BD411B70100500422FC6309E136@IIS000>
From: Bernard Dautrevaux <Dautrevaux AT microprocess DOT com>
To: "'John Pollock'" <jpollock AT curl DOT com>, cygwin AT sourceware DOT cygnus DOT com
Subject: RE: new sh doesn't translate Unix-style paths for Perl?
Date: Mon, 23 Oct 2000 14:35:29 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

> -----Original Message-----
> From: John Pollock [mailto:jpollock AT curl DOT com]
> Sent: Friday, October 20, 2000 6:14 PM
> To: cygwin AT sourceware DOT cygnus DOT com
> Subject: new sh doesn't translate Unix-style paths for Perl?
> 
> 
> 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

Probably here it's perl that can't be found; the fisrt line should read
'#!/absolute/cygwin/path/to/perl' 

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

Two possible reasons here:

First it should be "./make-version-info.pl" (your pwd says that current
directory is /cygdrive/m)

Second if your perl is a Win32-native perl it could not understand cygwin
paths, so you can also use

perl `cygpath -w /cygdrive/m/make-version-info.pl`

HTH,

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux AT microprocess DOT com
		b DOT dautrevaux AT usa DOT net
-------------------------------------------- 

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