Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: Subject: RE: zsh & make Date: Wed, 28 Apr 2004 11:02:36 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <16230394.1083144846247.JavaMail.sargon@mac.com> Message-ID: X-OriginalArrivalTime: 28 Apr 2004 10:02:36.0140 (UTC) FILETIME=[EE6DA2C0:01C42D07] > -----Original Message----- > From: Daniel Clausen > Sent: 28 April 2004 10:34 > The problem that occurs is that when reading lines over a pipe > and do something with them, zsh stops after some lines and > just hangs, while bash works w/o any problems. > Now, I execute this command: > > find tree -name Makefile | while read line ;do > echo $line > cp $line $line.1 > done > When running this under zsh, it treats between 8 and 20 Makefiles and > then just hangs. (and I have to 'kill -9' the shell) Running it under > bash works just fine. (or try other "4 4" instead of "3 3" > when creating > the tree-structure if by chance it treats all 27 Makefiles) I tried this under zsh: dk AT mace /artimi/firmware> zsh \u@\h \w> while read line ; do while> echo XX $line XX while> ls $line while> done fred XX fred XX ls: fred: No such file or directory As you can see, it read one line. It then locks up completely solid: no response to keys, no response to Ctrl-C/Z/D. I'm somewhat out-of-date with cygwin dll and apps, which probably explains why I see it fail immediately after one line and you see it get several lines. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/