break loop if not isatty

This commit is contained in:
Doug MacEachern committed 2005-07-21 04:53:27 +00:00
1 parent a7b4acb4bb
commit f37fc926f5
1 file changed
+9 -2
@@ -259,7 +259,12 @@ public abstract class ShellBase
return;
}
if (input == null || input.trim().length() == 0) {
continue;
if (!Getline.isTTY()) {
break;
}
else {
continue;
}
}
try {
@@ -268,7 +273,9 @@ public abstract class ShellBase
break;
}
}
out.println("Goodbye.");
if (Getline.isTTY()) {
out.println("Goodbye.");
}
}
public void handleCommand(String line) {