zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: `make' completion in zsh-3.1.9
Date: Wed, 21 Mar 2001 15:41:37 +0100 (MET)	[thread overview]
Message-ID: <200103211441.PAA29343@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Tue, 20 Mar 2001 18:42:28 +0000


Bart Schaefer wrote:

> On Mar 20, 11:33am, Sven Wischnowsky wrote:
> } Subject: Re: `make' completion in zsh-3.1.9
> }
> } Bart Schaefer wrote:
> } 
> } > zsh% while read -e; do :; done < Makefile | less
> } > 
> } > hangs until interrupted.  This works:
> } > 
> } > zsh% { while read -e; do :; done < Makefile } | less
> } 
> } Hrm, works for me.  (Please not another non-reproducible-everywhere
> } job contorl bug, please please please...)
> 
> It appears that "less" never gets started on my RH5.2 machine.  The
> "while" loop runs until it has written 4k bytes, then it gets stuck.
> 
> If the file redirected to the while loop is less than 4k in size, it
> all works fine.

Argh.  Works on DU (large buffers, it seems), but not on Solaris.

The problem is that the loop is not put in a sub-shell.  Ahem.

And w.r.t. the code in execcmd() this is correct (of, course, code is
always correct, silly me).  But how can we solve this?  Didn't it once 
work?  Changing the test at exec.c:1968 to also test for is_cursh
makes it work only half the way -- less comes up, but if one leaves it 
(fast enough) the sub-shell gets blocked, trying to write into the
pipe and being too stupid to find out that it can't anymore.

I'm very much confused... anyone know what we are supposed to do now?


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~2001-03-21 14:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-21 14:41 Sven Wischnowsky [this message]
2001-03-22  6:35 ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2001-03-20 10:33 Sven Wischnowsky
2001-03-20 18:42 ` Bart Schaefer
     [not found] <200103190934.KAA01031@beta.informatik.hu-berlin.de>
2001-03-19 10:17 ` Peter Stephenson
2001-03-19 18:27   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200103211441.PAA29343@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).