]> git.lizzy.rs Git - plan9front.git/blobdiff - rc/lib/rcmain
made sure that rcmain.local runs independent of the existence of $home/lib/profile...
[plan9front.git] / rc / lib / rcmain
index e74d5136503097e91378c00778487314ecd1c63d..575718512efc6807fd45fb821a12fd4faf2c1c61 100644 (file)
@@ -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) . $*