Index: ossp-pkg/rc/00TODO RCS File: /v/ossp/cvs/ossp-pkg/rc/00TODO,v rcsdiff -q -kk '-r1.10' '-r1.11' -u '/v/ossp/cvs/ossp-pkg/rc/00TODO,v' 2>/dev/null --- 00TODO 2002/01/29 15:35:05 1.10 +++ 00TODO 2002/01/30 07:53:24 1.11 @@ -31,7 +31,7 @@ * psoudocode implementation of rc * *********************************** -parse command line options +parse options read and merge all "rc.conf" files parse "Locate" @@ -43,8 +43,8 @@ Locate ${HOME}/.duerc.%{RCFILE:s/^\///:s/[\/]/-/g} Locate path/file/regex:regex_inside_file -foreach given locate { - for each (locate all possible rcfiles working out the regex) { +foreach locate { + for each (locate all possible rcfiles after variable expansion and shell globbing) { continue if (absolute path seen previously) //avoid duplicates if (filename matches given rcfile && securitycheck(RequireUmask, RequireOwner, RequireGroup)) load file and grab only a part of the file according to info after colon given in "locate" @@ -64,7 +64,7 @@ foreach rcfile { script = ""; script += %config from rcfile - script += %env from rc.env and override it + script += rc.env and override it create_script_for_rcfile(script, section, parent=no) expand our internal variables execute, print or printeval script with user & group priveleges