Bug 56732 - problems with echo -n
Summary: problems with echo -n
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-02 01:32 UTC by Konrad Scorciapino
Modified: 2003-04-02 02:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konrad Scorciapino 2003-04-02 01:32:27 UTC
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
Comment 1 Thiago Macieira 2003-04-02 02:05:33 UTC
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.