Input prompt behaves incorrectly if working directory path spans three lines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
gnome-terminal (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1) The release of Ubuntu you are using: Ubuntu 17.10
2) The version of the package you are using: gnome-terminal version 3.24.2-0ubuntu4; bash version 4.4-5ubuntu1
3) What you expected to happen: The input prompt should behave the same, no matter what the working directory is.
4) What happened instead: The cursor starts overlapping the working directory text (see attached screenshot, which shows a 80×24 terminal window in a directory called “/home/
On text input, the inputted text overwrites the working directory text. When pressing backspace, the entire second line is deleted (including the $ character). This makes using the history (up arrow) very confusing because afterwards, the actual input line characters do not seem to correspond to the displayed text anymore, i.e. characters inserted at a certain point are actually shifted in the resulting line, making it very difficult to properly type in commands.
Does this also happen in xterm? If so then this is a bug in bash, not gnome-terminal.