delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/05/30/15:28:20

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Tue, 30 May 2000 15:28:30 -0400
MIME-Version: 1.0
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

- Raw text -


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