Added change to /rc/lib/rcmain to allow execution of /rc/lib/rcmain.local if it exists. /rc/lib/rcmain.local is similar to $home/lib/profile in that it will only be executed with -l, but is site-wide.

This commit is contained in:
Matthew Veety 2015-12-07 16:01:09 -05:00
parent 9e09742e9b
commit 04a8392f8c

View file

@ -16,12 +16,18 @@ if not{
} }
fn sigexit fn sigexit
if(! ~ $#cflag 0){ if(! ~ $#cflag 0){
if(flag l && /bin/test -r $home/lib/profile) . $home/lib/profile if(flag l && /bin/test -r $home/lib/profile){
if(/bin/test -r /rc/lib/rcmain.local) . /rc/lib/rcmain.local
. $home/lib/profile
}
status='' status=''
eval $cflag eval $cflag
} }
if not if(flag i){ if not if(flag i){
if(flag l && /bin/test -r $home/lib/profile) . $home/lib/profile if(flag l && /bin/test -r $home/lib/profile){
if(/bin/test -r /rc/lib/rcmain.local) . /rc/lib/rcmain.local
. $home/lib/profile
}
status='' status=''
if(! ~ $#* 0) . $* if(! ~ $#* 0) . $*
. -i '#d/0' . -i '#d/0'