String readStartupCommandFile(String dir,String fname,String canonPath){
  File dotInitFile=new File(dir,fname);
  if (!dotInitFile.exists()) {
    return null;
  }
  String myCanonFile;
  try {
    myCanonFile=dotInitFile.getCanonicalPath();
  }
 catch (  IOException ee) {
    MessageOutput.println("Could not open:",dotInitFile.getPath());
    return null;
  }
  if (canonPath == null || !canonPath.equals(myCanonFile)) {
    if (!readCommandFile(dotInitFile)) {
      MessageOutput.println("Could not open:",dotInitFile.getPath());
    }
  }
  return myCanonFile;
}

String readStartupCommandFile ( String dir , String fname , String canonPath ) { File dotInitFile = new File ( dir , fname ) ; if ( ! dotInitFile . exists ( ) ) { return null ; } String myCanonFile ; try { myCanonFile = dotInitFile . getCanonicalPath ( ) ; } catch ( IOException ee ) { MessageOutput . println ( "Could not open:" , dotInitFile . getPath ( ) ) ; return null ; } if ( canonPath == null || ! canonPath . equals ( myCanonFile ) ) { if ( ! readCommandFile ( dotInitFile ) ) { MessageOutput . println ( "Could not open:" , dotInitFile . getPath ( ) ) ; } } return myCanonFile ; }
try to read commands from dir / fname , unless the canonical path passed in is the same as that for dir / fname . return null if that file doesn ' t exist , else return the canonical path of that file .
