On Thu, Mar 31, 2011 at 05:30:00PM -0700, Topher Fischer wrote: > > FYI: > > This problem does not happen with bash, sh, csh, tcsh, or ksh. zsh is > the devil.
By the way, the reason that zsh outputs a carriage return at all is "in order to ensure that the line editor knows what column it is in (this is needed to position the right-side prompt correctly ($RPROMPT, $RPS1) and to avoid screen corruption when performing line editing)." Such screen corruption is a common problem for me in bash. On my system, zsh actually deals with the missing-newline case better than bash. In bash: bash-4.1$ cat hello.txt rootbash-4.1$ In zsh: amcnabb@sage:~ :) cat hello.txt root% amcnabb@sage:~ :) The percent sign after "root" has inverted color to make it clear that it's signaling a missing end-of-line instead of being part of the output. This symbol is customizable with the PROMPT_EOL_MARK environment variable. But this shouldn't be about bashing bash or bashing zsh. :) I think your particular problem is that your system is running a very old version of zsh (or it is misconfigured). If you "man zshall" and search for "PROMPT_SP", you can read all about how this is supposed to work. If you're running an old version of zsh, there's a workaround in the ZSH FAQ here: http://zsh.sourceforge.net/FAQ/zshfaq03.html#l40 I hope that helps. :) -- Andrew McNabb http://www.mcnabbs.org/andrew/ PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868 -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
