tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] Allow qualified filename (bar/foo) PATH searching.



On Sun, 29 Sep 2024, tlaronde%kergis.com@localhost 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


Home | Main Index | Thread Index | Old Index