Sender: burgers AT ecn DOT nl Message-ID: <39647DF2.821626A@ecn.nl> Date: Thu, 06 Jul 2000 14:39:14 +0200 From: Teun Burgers 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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: > If I'm right, then I don't understand how does Perl work for people (me > included) whose DJGPP tree is not rooted at c:/djgpp. ("/dev/env/DJDIR" > trick might help, but I don't think that current Perl binaries were > compiled with DJGPP v2.03.) This I guess is precisely what the piece of code in Perl_DJGPP_init does that I sent to this list on July 4th 2000 in this same thread. It takes argv[0], looks for the last / and strips of the string "/bin" before that. This last step fails when there is "\bin" in the prefix which is why we get in @INC something like c:\djgpp\bin/lib/perl5 instead of c:/djgpp/lib/perl5 as intended 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