Bug 343248 - The Bash prompt is losing position and text.
Summary: The Bash prompt is losing position and text.
Status: RESOLVED UPSTREAM
Alias: None
Product: konsole
Classification: Applications
Component: history (show other bugs)
Version: 2.13.2
Platform: Mint (Ubuntu based) Linux
: NOR grave
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-24 19:08 UTC by Felipe Morales
Modified: 2015-06-25 20:03 UTC (History)
2 users (show)

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 Felipe Morales 2015-01-24 19:08:18 UTC
It's the prompt indicator but is not only the $ simbol is the entire " [user]@[host] $" I'm not sure how is called but I will use prompt ... well the trouble is that the prompt It's replaced with another text . It happens when last line was presented without the new line. Example using cURL to get json data from localhost I get a JSON response from the server but in this case the prompt appears at the end of the response, then If I try to access to the Bash History ( with up key) the first command in the history is fine, but if I do again (up key again) to get an older command the prompt goes back to the original place, but this time is the prompt is replaced with another text, in this case with the json reponse.  

example:

note the bash prompt position to the end of the json response.

felipe@MiPC-Felipe:~ > curl -X GET https://www.googleapis.com/customsearch/
Not Foundfelipe@MiPC-Felipe:~ > 

Now I will access to the echo command in the bash history using two times the up key.  Note that the bash prompt is replaced with the last line(server response). 

felipe@MiPC-Felipe:~ > echo "hola"
hola
felipe@MiPC-Felipe:~ > curl -X GET https://www.googleapis.com/customsearch/
Not Foundfelipe@MiPC-Feecho "hola"
hola

Reproducible: Always

Steps to Reproduce:
1. Write some command example:$ echo "Hello".
2. Try to get JSON response from some server using cURL. example: $ curl -X GET https://www.googleapis.com/customsearch/
3. Try to access to the first command tiped. (two times up key) 

Actual Results:  
The bash prompt is replaced with the response and the bash prompt appears after the response

Expected Results:  
bash prompt no replaced or moved.

It looks like two bugs.  Is  present since the first kde version that I have used, kde4.4 and still present.
Comment 1 Felipe Morales 2015-01-24 19:39:40 UTC
I have reproduced this bug on lxterminal It looks like a bash bug. And Using zsh the bug is not present, so the bug is from bash. 

felipe@MiPC-Felipe ~ % echo "HOLA"
HOLA
felipe@MiPC-Felipe ~ %  curl -X GET https://www.googleapis.com/customsearch/
Not Found%                                                                                                                                felipe@MiPC-Felipe ~ % echo "HOLA"                                          
HOLA
Comment 2 Felipe Morales 2015-01-24 19:46:36 UTC
(In reply to fpilee from comment #1)
> I have reproduced this bug on lxterminal It looks like a bash bug. And Using
> zsh the bug is not present, so the bug is from bash. 
> 
> felipe@MiPC-Felipe ~ % echo "HOLA"
> HOLA
> felipe@MiPC-Felipe ~ %  curl -X GET https://www.googleapis.com/customsearch/
> Not Found%                                                                  
> felipe@MiPC-Felipe ~ % echo "HOLA"                                          
> HOLA

Well looking in this comment is like some strange character is in the end of the response. Is not handled well by this comment system, but in konsole with zsh works fine.