In the last episode (Jun 16), slumos@unlv.nevada.edu said: > When entering certain long commands, zsh (at least 4.0.7 and 4.2.0 on > at least FreeBSD and Solaris) beeps and echos parts of the command. > Here's a stupid made-up example: > > [~]0% ls -la | while read line; do echo $line | awk '{print $1 " " $2 " " $3 " " $4 " " $5 "\n"}'; done >|/dev/null; echo > > "}'; done >|/dev/null; echo > [~]0% I bet you have a preexec function that sets your xterm's title bar, right? Either the backslashes or the embedded newline is aborting the escape sequence, you end up with the rest of your command printed onscreen, plus the ^G that was supposed to end the titlebar escape string. I've attached the part of my zshrc file dealing with xterm and screen titles. It strips control characters from the commandline before sending it to xterm. It also sets the window name in screen, so if you use the windows or windowlist command, you can see at a glance what is running in each screen: 0*&$ ./start 1-$ mutt 2@$ irc_irc.ca 3$ ssh_emssr 4$ ssh_emssr 5$ joe_/e Note there are raw control characters in the attached file, so you might not be able to cut'n'paste the text correctly unless you save it. I also have the following in my screenrc, since screen won't write to the xterm titlebar unless the termcap entry has the 'hs' capability. termcapinfo xterm|xterm-color 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007' -- Dan Nelson dnelson@allantgroup.com