This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: zsh & make
- From: "Dave Korn" <dk at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 28 Apr 2004 11:02:36 +0100
- Subject: RE: zsh & make
> -----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@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/