title: HBase shell crash after backspace
body: <p>I am running HBase in a docker container.
  Version is 1.2.4</p>
  
  <p>Basically based on </p>
  
  <blockquote>
    <p><a href="https://github.com/dajobe/hbase-docker" rel="nofollow noreferrer">https://github.com/dajobe/hbase-docker</a></p>
  </blockquote>
  
  <p>When i do the following:</p>
  
  <p>1) Build the image: <strong>docker build -t hbase-docker .</strong></p>
  
  <p>2) Start the container: <strong>./start-hbase.sh</strong></p>
  
  <p>3) Go in the container: <strong>docker exec -it hbase bash</strong></p>
  
  <p>4) Open HBase shell: <strong>hbase shell</strong></p>
  
  <p>5) and then if i type something and press backspace, it crashes with following:</p>
  
  <pre><code>hbase(main):001:0&gt; ConsoleReader.java:1414:in `backspace': java.lang.ArithmeticException: / by zero
      from ConsoleReader.java:1436:in `backspace'
      from ConsoleReader.java:628:in `readLine'
      from ConsoleReader.java:457:in `readLine'
      from Readline.java:237:in `s_readline'
      from Readline$s$s_readline.gen:65535:in `call'
      from CachingCallSite.java:332:in `cacheAndCall'
      ...
      ...
  </code></pre>
  
  <p>Any idea how to make backspace work and prevent this from happening?!
  Thank you.</p>