Bug 146264

Summary: bash (readline?) issue after command returned without LF
Product: [Fedora] Fedora Reporter: Joe Orton <jorton>
Component: bashAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-01-26 16:06:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joe Orton 2005-01-26 15:48:47 UTC
This bugs me occasionally.

jorton@trash:~$ rpm -q bash
bash-3.0-25.i386
jorton@trash:~$ echo -n foo
foojorton@trash:~$

OK so far; now type "bar" then hit Ctrl-a then Ctrl-e 

jorton@trash:~$ barbar

the line is redrawn from column 0 but is not cleared first.

bug or feature?

Comment 1 Tim Waugh 2005-01-26 16:06:08 UTC
Feature.  Bash either has to assume that it's starting on the first column
(leading to the behaviour you see), or make sure that it's starting on the first
column by emitting '\r' before the prompt.

In the latter case (which was the behaviour for a short while) you would not see
the output of the echo command at all, since it would be overwritten.