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:
werner@magellan:~/Tests/beamer> echo -en "abcdefghijklm" >jengelh werner@magellan:~/Tests/beamer> cat jengelh abcdefghijklmwerner@magellan:~/Tests/beamer> werner@magellan:~/Tests/beamer> echo "$PS1" $(ppwd \l)\u@\h:\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: opensuse-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-help@opensuse.org