| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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" <dk AT artimi DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | RE: zsh & make |
| Date: | Wed, 28 Apr 2004 11:02:36 +0100 |
| MIME-Version: | 1.0 |
| In-Reply-To: | <16230394.1083144846247.JavaMail.sargon@mac.com> |
| Message-ID: | <NUTMEGDVXLuSbh29cM300000078@NUTMEG.CAM.ARTIMI.COM> |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |