Mail Archives: djgpp-workers/2000/05/30/15:28:20
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 -