delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/05/13/00:24:26

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Sun, 13 May 2001 00:23:51 -0400
MIME-Version: 1.0
Subject: Re: spawn* and LFN again
Message-ID: <3AFDD417.19934.410AD6@localhost>
In-reply-to: <968-Sat12May2001234758+0300-eliz@is.elta.co.il>
References: <CAEGKOHJKAAFPKOCLHDIIEEDCDAA DOT tim DOT van DOT holder AT pandora DOT be>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> > Also, what if 'foo' is a shell script and 'foo.exe' already exists?
> 
> This was a problem Mark (I think) found and corrected lately.  It does
> TRT now.

With Bash 2.05 compiled with libc cvs, the shell script 'foo' is executed. 
However the way libc gets there troubles me. 

__spawnve does find 'foo.exe' and not 'foo'. But it restores the filename to 
'foo' before calling go32_exec. go32_exec finds out it has a shell script so 
it calls script_exec. Now if it didn't wipe the '.exe' part, 'foo.exe' would 
indeed be run.

Mark



- Raw text -


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