bash long prompt, color going past the end of prompt after reaching bottom of terminal

2018-03-22 Thread Musse Abdullahi
From: mabdulla To: bug-bash@gnu.org Subject: bash long prompt, color going past the end of prompt after reaching bottom of terminal Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE=

bash two line prompt, after reaching the bottom of terminal color going past the end of prompt

2018-03-22 Thread Musse Abdullahi
How to reproduce bug: calculate_prompt1(){ host="my-linux" git_branch="a very very very very very very very very very very very very very very long prompt" prompt="@$host \\w : \[$(tput bold)$(tput setab 1)$(tput setaf 7)\]${git_branch}\[$(tput sgr0)\]\$ " export PS1="$prompt"} PR

Re: bash long prompt, color going past the end of prompt after reaching bottom of terminal

2018-03-23 Thread Musse Abdullahi
Virta wrote: > On 22.3. 22:22, Chet Ramey wrote: > >> On 3/22/18 1:44 PM, Musse Abdullahi wrote: >> >> Bash Version: 4.2 >>> Patch Level: 46 >>> Release Status: release >>> >>> Description: >>> look at Repeat-By section &