delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/07/03/18:34:18

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Mon, 3 Jul 2000 18:34:20 -0400
MIME-Version: 1.0
Subject: DJGPP problem executing a script
Message-ID: <3960DCAC.13929.3BA35B@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

Hi guys,
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).

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?

Mark

- Raw text -


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