FELIX-1777: Hitting backspace beyond last character causes LOUD BEEP

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@827428 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/assembly/src/main/distribution/text/etc/system.properties b/karaf/assembly/src/main/distribution/text/etc/system.properties
index 40aa8bc..6e2cd79 100644
--- a/karaf/assembly/src/main/distribution/text/etc/system.properties
+++ b/karaf/assembly/src/main/distribution/text/etc/system.properties
@@ -22,3 +22,4 @@
 karaf.default.repository=system
 karaf.shell.init.script=${karaf.home}/etc/shell.init.script
 xml.catalog.files=
+jline.nobell=true
diff --git a/karaf/shell/console/src/main/java/org/apache/felix/karaf/shell/console/jline/Console.java b/karaf/shell/console/src/main/java/org/apache/felix/karaf/shell/console/jline/Console.java
index 045daf6..ed7e454 100644
--- a/karaf/shell/console/src/main/java/org/apache/felix/karaf/shell/console/jline/Console.java
+++ b/karaf/shell/console/src/main/java/org/apache/felix/karaf/shell/console/jline/Console.java
@@ -113,6 +113,9 @@
                 )
             );
         }
+        if (Boolean.getBoolean("jline.nobell")) {
+            reader.setBellEnabled(false);
+        }
         pipe = new Thread(new Pipe());
         pipe.setName("gogo shell pipe thread");
         pipe.setDaemon(true);