&find - Find a file on the search path
&which - Find a program on the path
&find <basename> <extension>
&find searches for a named file <basename><extension> on the MicroEmacs '06 search path defined by the variable $search-path(5), initialized by the system of from the the environment variables $MEINSTALLPATH(5) etc.
Each path component defined in $search-path is prepended to the constructed file name and it's existence is tested. If the file exists, then the FULL path name of the file is returned to the caller, otherwise ERROR.
&which searches for the given executable program <progname> on the system program search path defined the the environment variable $PATH.
The following example uses &find to locate the uses 'C' template file. Given a $search-path setting of /usr/bob/emacs:/usr/local/microemacs:-
insert-file &find "c" ".etf"
Would insert the file /usr/bob/emacs/c.etf if it existed, else the file /usr/local/microemacs/c.etf if it exists.
Copyright (c) 1998-2006 JASSPA
Last Modified: 2004/02/01
Generated On: 2006/10/07