Re: [PATCH] Allow qualified filename (bar/foo) PATH searching.
RVP <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.userlevel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 29 Sep 2024, [email protected] wrote: > POSIX requires that PATH searching be done only if the identifier > (aka "file") has no '/' (if it has, it is a "path"). > > Allow searching qualified filenames, i.e. Resource Identifier, > like dk/ctl, vect/in/dxf by setting an environment variable > PATH_SEARCH_OPT with the setting 'Q' in the definition. > I like this proposal in general: it makes things like using multiple compilers very convenient (w/o any PATH-fiddling). Assuming the binaries/links are in /opt/compilers/bin (and that is in $PATH), then: $ gcc13/gcc ... $ clang-18/cc ... etc,... but, what should be done for: {base,dir}name(), {get,set}progname(), and err*()/warn*()? And, of course, realpath() (add a `-m' to the binary?). -RVP