Newline in PS1 variable messes with the prompt
Whenever I set the PS1 variable with a new line, it messes with the prompt.
Steps
- Open console
- Type: PS1=‘\n\w\n\$ ’
- Press enter
- Press Ctrl+l to clear
Actual Result
Last command is shown at the top. And if you try to get the autocomplete with tabs, it actually re-renders in a new line (refer to attachment)
Expected Result
Everything should work fine
(from redmine: issue id 5628, created on 2016-05-26)