Index: trunk/Ohana/src/opihi/lib.shell/startup.c
===================================================================
--- trunk/Ohana/src/opihi/lib.shell/startup.c	(revision 27996)
+++ trunk/Ohana/src/opihi/lib.shell/startup.c	(revision 27997)
@@ -124,7 +124,12 @@
     if (LOAD_RC && !is_script) {
       rcfile = get_variable ("RCFILE");
-      sprintf (line, "input %s/%s", home, rcfile);
-      status = command (line, &outline, TRUE);
-      if (outline != (char *) NULL) free (outline);
+      if (rcfile && check_file_access (rcfile, FALSE, FALSE, FALSE)) {
+	sprintf (line, "input %s/%s", home, rcfile);
+	status = command (line, &outline, TRUE);
+	if (outline != (char *) NULL) free (outline);
+	if (status) {
+	  gprint (GP_LOG, "loaded file %s\n", argv[1]); 
+	}	  
+      }
       if (rcfile) free (rcfile);
     }
