Blame jline-shell-workaround.patch

69fe4f7
diff --git a/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java b/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java
69fe4f7
index 9231c78..0336a67 100644
69fe4f7
--- a/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java
69fe4f7
+++ b/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java
69fe4f7
@@ -646,9 +646,10 @@ public class Shell extends ShellOptions {
69fe4f7
   }
69fe4f7
 
69fe4f7
   public void printInfo() throws IOException {
69fe4f7
-    reader.print("\n" + SHELL_DESCRIPTION + "\n" + "- \n" + "- version: " + Constants.VERSION + "\n" + "- instance name: "
69fe4f7
+    writer.print("\n" + SHELL_DESCRIPTION + "\n" + "- \n" + "- version: " + Constants.VERSION + "\n" + "- instance name: "
69fe4f7
         + connector.getInstance().getInstanceName() + "\n" + "- instance id: " + connector.getInstance().getInstanceID() + "\n" + "- \n"
69fe4f7
         + "- type 'help' for a list of available commands\n" + "- \n");
69fe4f7
+    writer.flush();
69fe4f7
     reader.flush();
69fe4f7
   }
69fe4f7
 
69fe4f7
@@ -676,7 +677,9 @@ public class Shell extends ShellOptions {
69fe4f7
       }
69fe4f7
     }
69fe4f7
     sb.append("-\n");
69fe4f7
-    reader.print(sb.toString());
69fe4f7
+    writer.print(sb.toString());
69fe4f7
+    writer.flush();
69fe4f7
+    reader.flush();
69fe4f7
   }
69fe4f7
 
69fe4f7
   public String getDefaultPrompt() {