Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Zsh looping on commands that produce long output
- X-seq: zsh-workers 23729
- From: Jeffrey Merrick <jeff.merrick@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxxxxx>
- Subject: Zsh looping on commands that produce long output
- Date: Mon, 30 Jul 2007 19:40:33 -0700
- Importance: Normal
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi,
I've repeatedly run into the problem of zsh looping when running commands that produce many (like, 200 or more) lines of output. If you can imagine the output having line numbers, what happens is something like this:
line 400
line 401
line 402
line 382
line 383
.....
line 401
line 402
line 382
line 383
.....
line 401
line 402
line 382
line 383
and so forth. It is as if a circular buffer is being repeatedly displayed, without ever getting to the next line (403 and following).
Some commands that I've had problems with are:
% ls -l -F --color=tty # when the directory contains a large number of files
% ps -A
% diff file1 file2 # when the numbers of lines of change was large
The problem does not happen in a predictable manner; I cannot repeat the problem every time. However, once it happens on one zsh session on a machine, I can create zsh session on the same machine, repeat the command (or any other command that produces a lot of output), and it is guaranteed to have the same looping problem as the first. Note that when this happens, the output that is repeated is particular to the command typed at that shell; if one shell session is looping on an 'ls' comamnd, and I do a 'ps -A' in another shell, the second shell gets repeated process status lines and not repeated directory listing lines. (Note: I'm one of the very few zsh users at my company, so it's very likely I'm running all the instances of zsh on a given machine.) When I kill all instances of zsh on the machine and login again, the problem goes away.
Thus, it's as if there is some shared state across all running zsh instances that triggers the looping behavior, and the state is cleared only by killing all the zsh instances.
The problem seems to be independent of zsh version. My company has zsh version 4.0.4, but I built version 4.2.6 myself and encountered the same problem.
The platform is an i686-pc-linux-gnu running i386-redhat-linux8.0. I create the zsh login shells by ssh'ing from my Mac PowerBook to the company machine. (Actually, my login shell is tcsh, but I exec zsh during shell startup.)
I don't subscribe to zsh-workers, but I will be checking the archive at 'zsh.org/mla' daily. Those interested in more details can feel free to send me private email.
Thanks for any help you can provide.
And thanks to everyone who maintains zsh! It's truly the best shell I've ever used. Having started using it about a month ago, I can't imagine going back to use anything else.
Jeff
_________________________________________________________________
Missed the show? Watch videos of the Live Earth Concert on MSN.
http://liveearth.msn.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author