public File pathToFile(String fileName) throws IOException {
  File file=new File(fileName);
  if (!file.isAbsolute()) {
    String cwd=(String)getu("bsh.cwd");
    file=new File(cwd + File.separator + fileName);
  }
  return new File(file.getCanonicalPath());
}

public File pathToFile ( String fileName ) throws IOException { File file = new File ( fileName ) ; if ( ! file . isAbsolute ( ) ) { String cwd = ( String ) getu ( "bsh.cwd" ) ; file = new File ( cwd + File . separator + fileName ) ; } return new File ( file . getCanonicalPath ( ) ) ; }
localize a path to the file name based on the bsh . cwd interpreter working directory .
