Mail Archives: djgpp-workers/2000/07/04/03:01:45
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 -