In popular console tools the default value for the stty erase character is set to "^?". BusyBox ash "read" built-in does not have line editing support. If you now use "read" in an ash script and "^H" is set as stty erase character on the target device, then correcting with the backspace button does not work. Because the local console sends "^?" and the target device expects "^H".
Signed-off-by: Wolfram Dold <[email protected]> --- projectroot/etc/profile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/projectroot/etc/profile b/projectroot/etc/profile index 259113d33..833791497 100644 --- a/projectroot/etc/profile +++ b/projectroot/etc/profile @@ -2,11 +2,6 @@ # export HISTFILE=/tmp/.ash_history.$USER.$PPID -# This fixes the backspace when telnetting in. -if [ "$TERM" != "linux" ]; then - stty erase ^H -fi - # source this file for subsequent shells, too # (will also be sourced for init-shell) export ENV=/etc/profile.environment -- 2.17.1 _______________________________________________ ptxdist mailing list [email protected]
