Bug 146264 - bash (readline?) issue after command returned without LF
bash (readline?) issue after command returned without LF
Product: Fedora
Classification: Fedora
Component: bash (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2005-01-26 10:48 EST by Joe Orton
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-01-26 11:06:08 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joe Orton 2005-01-26 10:48:47 EST
This bugs me occasionally.

jorton@trash:~$ rpm -q bash
jorton@trash:~$ echo -n foo

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 11:06:08 EST
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.

Note You need to log in before you can comment on or make changes to this bug.