>> Heya,
>> 
>> 
>> since SUSE Linux 10.1, bash always reprints the prompt.
>> 
>> This created very weird output that is hidden too...:
>> 
>> 19:26 shanghai:/var/run/pam_mount > echo -en "abcdefghijklm" >jengelh
>> 19:26 shanghai:/var/run/pam_mount > cat jengelh
>> 19:26 shanghai:/var/run/pam_mount > /pam_mount >
>> 
>> It looks like it does print $PS1 then '\r' and then $PS1 again. Is there a 
>> way to turn this off? Besides hiding non-'\n'-output (like from the test 
>> file), it also slows down remote shell access with high-latency links.
>
>Seems to be a problem with your prompt string, here it works:
>
> [EMAIL PROTECTED]:~/Tests/beamer> echo -en "abcdefghijklm" >jengelh
> [EMAIL PROTECTED]:~/Tests/beamer> cat jengelh
> [EMAIL PROTECTED]:~/Tests/beamer> 
> [EMAIL PROTECTED]:~/Tests/beamer> echo "$PS1"
> $(ppwd \l)[EMAIL PROTECTED]:\w> 
>
>please note that every special character like terminal escape
>characters should be enclosed by \[ \] within the prompt strings.

export PS1="\[\e[1;30m\]\A \[\e[0;32m\]\h:\w > "

has no problems but

export PS1="\[\e[1;30m\]\A \[\e[0;32m\]\h:\w \[\e[1m\]> "

I can't see the problem. Maybe you?



Jan Engelhardt
-- 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to