From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Tue, 30 May 2000 15:28:30 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: __dosexec_find_on_path question Message-ID: <3933DE1E.13566.25B201@localhost> X-mailer: Pegasus Mail for Win32 (v3.12c) Reply-To: djgpp-workers AT delorie DOT com Alright, here's a new idea (for Bash to use libc and not reinvent it): Create a flag, perhaps with the name __spawn_flags, that includes a flag indicating that no extension search should be tried if the filename as-is exists. From my experiments with dosexec.c, this check need only done in __spawnve to DTRT for Unix script files. Another idea is a call to _check_v2_prog in __spawnve before doing the extension search and if a shell script is found, call script_exec. Mark