Version: (using KDE KDE 3.1) Installed from: FreeBSD Ports Compiler: gcc version 2.95.3 OS: FreeBSD When using `echo -n`, the console gets displaced. Then, if you press the "up" key to get a previous command, and it is bigger than a line, and you use the backspace, usually you can delete your command line.Ex: joe@localhost# echo -n "FOOBAR" FOOBARjoe@localhost# (Then you press "up") FOOBARjoe@localhost# echo "DODECAHE DRON" ( Then you press the backspace key multiple times) FOOBARjoe@localho
This is not a bug. If you want to bring this to someone's attention, you should contact the responsible people for the shell program you're using (/bin/sh, GNU Bash, tcsh, ksh, zsh, whatever). This is also not a problem with echo itself, which is one of the simplest commands in existance. That happens because the shells usually have no control over the exact position of the cursor on the screen -- all they know is how much data you have typed and it's showing. Since the cursor was not where it was supposed to be (i.e., start of a line), the whole thing gets dislocated. If this bothers you horribly, you can hit Ctrl+L to have your shell redraw the screen. Note it'll probably erase it.