Skip to content

Commit

Permalink
Add a TODO note about maybe building up bu_which to handle Win/OSX hu…
Browse files Browse the repository at this point in the history
…nting a little.
  • Loading branch information
starseeker committed Dec 9, 2024
1 parent 7d16642 commit 5c8216b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libbu/which.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ which_path(const char *cmd, const char *path, char *result)
return NULL;
}


// TODO - can/should we extend bu_which to also check C:/Program
// Files/<stuff>/<stuff> and /Applications/<stuff>.app/Contents/MacOS/<stuff>
// type paths, so we could put (say) notepad++.exe or TextEdit into bu_which
// and have it find their full paths? May also be OS mechanisms to do
// lookups (registry, etc.) that could be useful, such as SearchPath on
// Windows...
const char *
bu_which(const char *cmd)
{
Expand Down

0 comments on commit 5c8216b

Please sign in to comment.