From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Sun, 13 May 2001 00:23:51 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: spawn* and LFN again Message-ID: <3AFDD417.19934.410AD6@localhost> In-reply-to: <968-Sat12May2001234758+0300-eliz@is.elta.co.il> References: 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 Precedence: bulk > > 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