summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorMatthew Veety <mveety@mveety.com>2015-12-07 17:59:53 -0500
committerMatthew Veety <mveety@mveety.com>2015-12-07 17:59:53 -0500
commit1c0ba2019ece868b7ec75090df31ab77b6087355 (patch)
tree3dddecf27069a565fdf443062b780f61e462de62 /rc
parent04a8392f8c7c75f585d48360774c6f1faa950f0c (diff)
downloadplan9front-1c0ba2019ece868b7ec75090df31ab77b6087355.tar.xz
made sure that rcmain.local runs independent of the existence of $home/lib/profile. Documented /rc/lib/rcmain, /rc/lib/rcmain.local, $home/lib/profile in rc(1) and the first two in namespace(4)
Diffstat (limited to 'rc')
-rw-r--r--rc/lib/rcmain8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc/lib/rcmain b/rc/lib/rcmain
index e74d51365..575718512 100644
--- a/rc/lib/rcmain
+++ b/rc/lib/rcmain
@@ -16,17 +16,17 @@ if not{
}
fn sigexit
if(! ~ $#cflag 0){
- if(flag l && /bin/test -r $home/lib/profile){
+ if(flag l){
if(/bin/test -r /rc/lib/rcmain.local) . /rc/lib/rcmain.local
- . $home/lib/profile
+ if(/bin/test -r $home/lib/profile) . $home/lib/profile
}
status=''
eval $cflag
}
if not if(flag i){
- if(flag l && /bin/test -r $home/lib/profile){
+ if(flag l){
if(/bin/test -r /rc/lib/rcmain.local) . /rc/lib/rcmain.local
- . $home/lib/profile
+ if(/bin/test -r $home/lib/profile) . $home/lib/profile
}
status=''
if(! ~ $#* 0) . $*