Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh 5.6 regression: a pipe sometimes yields a TTOU signal
- X-seq: zsh-workers 43380
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: Re: zsh 5.6 regression: a pipe sometimes yields a TTOU signal
- Date: Wed, 5 Sep 2018 11:03:54 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180905100357euoutp025c66f36f0b7550a56c2415cda19f0268~ReNzJa9OD2525925259euoutp02g
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1536141837; bh=nbkyBvOyOehXyM3IKmY5ncw0MzAeBNjnoOWsZFYkLas=; h=Date:From:To:Subject:In-Reply-To:References:From; b=aNGv5LsAxXzHZC+HNV0HMzV0jnWFT3JHMUrN2QVD/3qY5YAHnav6DOYMN6KejWe1w 2qvCe6U54YiL15ieL78Z4ICQFOZl90l8ns6LpiZzcKzVL1dYwxIj0gRqdRaKEXknjy KeCAmGRKEdCWymqG+17fqM7P4TKKPrzgRdMcanwo=
- In-reply-to: <20180905090339.GA18116@cventin.lip.ens-lyon.fr>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CGME20180905091407epcas1p1ff78da39bfd4f3e4201f467683288a7b@epcas1p1.samsung.com> <20180905090339.GA18116@cventin.lip.ens-lyon.fr>
On Wed, 5 Sep 2018 11:03:39 +0200
Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> After the upgrade to zsh 5.6 under Debian/unstable, I sometimes get:
>
> ypig:~> dpkg -l|gr mercurial
> ii mercurial 4.7-1 amd64 easy-to-use, scalable distributed version control system
> ii mercurial-common 4.7-1 all easy-to-use, scalable distributed version control system (common files)
> zsh: exit 150
> zsh: suspended (tty output) pager-wrapper grep --color=always --line-buffered -E mercurial
> ypig:~[TTOU]>
>
> where
>
> gr: aliased to pager-wrapper grep --color=always --line-buffered -E
>
> and pager-wrapper is:
>
> pager-wrapper () {
> local -a opt
> while [[ $1 == -* ]]
> do
> opt+=$1
> shift
> done
> if [[ -t 1 ]]
> then
> $@ $opt | less -+c -FRX
> else
> $@
> fi
> }
I managed to get this to happen once in a set of tests.
With
(echo mercurial) | gr mercurial
I always get
zsh: suspended (tty output) pager-wrapper grep --color=always --line-buffered -E mercurial
This isn't going to be fixed quickly (or, quite likely, at all without
creating different knock-on effects, as changes here always do). Anyone
wanting to volunteer to look after job control would be very welcome ---
currently like so much of the shell it's down to when Bart and I
get a chance to look, as it has been for several decades now, which
isn't a sustainable position.
It's presumably down to the first job exiting and the other part
of the pipeline not getting control quickly enough.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author