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.
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
(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.
See https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1419339