delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/07/04/03:01:45

Sender: burgers AT ecn DOT nl
Message-ID: <39618BBC.29F0EBE7@ecn.nl>
Date: Tue, 04 Jul 2000 09:01:16 +0200
From: Teun Burgers <burgers AT ecn DOT nl>
Organization: Netherlands Energy Research Foundation ECN
X-Mailer: Mozilla 4.51 [en] (X11; I; OSF1 V5.0 alpha)
X-Accept-Language: nl
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: DJGPP problem executing a script
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000704083219 DOT 818F-100000 AT is>
Reply-To: djgpp-workers AT delorie DOT com

Eli Zaretskii wrote:
> 
> On Mon, 3 Jul 2000, Mark E. wrote:
> 
> > I received a bug report about 'perldoc' (from the perl distribution) failing
> > because it has '#!perl' at the top. script_exec in dosexec.c turns 'perl'
> > into 'c:\djgpp\bin/perl.exe' (depending on your installation of course).

I was the reporter. The problem turns up when you use the
bash 2.04 beta. The problem does not turn up with bash 2.03

> > If I change script_exec to change backslashes to forward slashes before
> > calling the selected spawn function, perldoc gets 'c:/djgpp/bin/perl.exe' and
> > everything works. Would a patch to do this conversion be welcome or, as Eli
> > likes to say, am I missing something?
> 
> I don't think you miss something, but perhaps I am: why doesn't
> "c:\djgpp\bin/perl.exe" work?  Is it because the script is run from
> Bash, and Bash takes the backslashes as escapes?

The problem is not that c:\djgpp\bin/perl.exe does not get invocated.
Somehow internally in perl c:\djgpp\bin propagates to @INC,
messing up @INC. See the error message:

C:\install\apache>bash -login
Welcome to bash version 2.04.7(15)-release
1(/dev/c/install/apache)$ perldoc perl
Can't locate Getopt/Std.pm in @INC (@INC contains:
c:\djgpp\bin/lib/perl5 c:\djgpp\bin/lib/perl5/site
c:\djgpp\bin/lib/perl5/site .) at c:/djgpp/bin/perldoc line 27.
BEGIN failed--compilation aborted at c:/djgpp/bin/perldoc line 27.
[exited with 22]
1(/dev/c/install/apache)$

Teun

-- 
Drs A.R. Burgers        Netherlands Energy Research Foundation ECN
Phone: +31-224-564959   Solar & Wind Energy, PV Cells & Modules
Fax  : +31-224-563214   P.O. Box 1
email: burgers AT ecn DOT nl   1755 ZG Petten, The Netherlands

- Raw text -


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