> On 2018 Mar 23 , at 8:26 a, Greg Wooledge wrote:
>
> On Fri, Mar 23, 2018 at 12:36:22AM +0200, Ilkka Virta wrote:
>> I get the same with '4.4.12(1)-release' too, but it doesn't seem related to
>> Bash or the prompt. I can get it with just a printf, the colored part just
>> needs to get wrapped
Virta,
your workaround solves the first issue but creates another one.
Here is the script with your workaround
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)$(tp
On Fri, Mar 23, 2018 at 12:36:22AM +0200, Ilkka Virta wrote:
> I get the same with '4.4.12(1)-release' too, but it doesn't seem related to
> Bash or the prompt. I can get it with just a printf, the colored part just
> needs to get wrapped by the end of line.
>
> printf "%100s $(tput setab 1)color
On Thu, Mar 22, 2018 at 6:25 PM, Chet Ramey wrote:
> On 3/22/18 3:38 PM, Andrei Vagin wrote:
>
>> I am thinking how to fix this issue properly. Here are a few points:
>> * bash should know that signals are ignored if a process is the init
>> process in a pid namespace.
>
> Why should it know this?