skip loaded rc msg unless isatty

This commit is contained in:
Doug MacEachern 2005-07-21 04:54:42 +00:00
parent f37fc926f5
commit cad4b55102
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ public class Shell extends ShellBase {
try { try {
File rc = new File(dir, RCFILE_NAME); File rc = new File(dir, RCFILE_NAME);
readRCFile(rc, false); readRCFile(rc, false);
if (this.isInteractive) { if (this.isInteractive && Getline.isTTY()) {
this.out.println("Loaded rc file: " + rc); this.out.println("Loaded rc file: " + rc);
} }
} catch (IOException e) { } } catch (IOException e) { }