Mail Archives: djgpp/2000/08/21/06:45:44
Tim 'Zastai' Van Holder wrote in message
<7QWn5.142399$Fw6 DOT 3484407 AT afrodite DOT telenet-ops DOT be>...
>Damn - I've had that lying around for a while now (used the bash
exec-
>finding code to make it work right). Guess I should have released
it and
>saved you the trouble. Sorry.
>Will you release it as a DJGPP distribution, or shall I?
What is the "bash exec-finding code"? I added this little hack to
search a list of extensions:
#ifdef DJGPP
// If we didn't find the original command, try looking for a
// version with ".exe", ".com", or ".bat" tacked on the end.
if (!result) {
for (indx = 0; indx < sizeof(exts) / sizeof(const char *);
indx++) {
result = find_alt_command_in_path(cmd, exts[indx],
path_list, old_index, &path_index);
if (result) break;
}
}
#endif
I did this so that people could add other extensions later (".pl",
".cmd", etc.). But if there's and easier way, let me know...
Thanks,
David
- Raw text -