On Tue, Jul 25, 2006 at 07:28:02PM +0200, Jan Engelhardt wrote:
> 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.
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]