Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"echo | ps -j $(:) | cat | cat | cat" runs components in different process groups
- X-seq: zsh-workers 42512
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: "echo | ps -j $(:) | cat | cat | cat" runs components in different process groups
- Date: Fri, 23 Mar 2018 16:16:13 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=T6XAiO1+AAOwbAi7kwaajWfjH7r4F2trx85cjVIwN84=; b=UD2qKJJgt63pvWgvB8BSr8QHwCyGoU+zuJwXAyvHby22pnMGwstmpBBXi5wD397Y3L eEIw+xpwGrhlZEsUpItqMII+dRUgN+7TsTsL3IA5W5lv0sjiUB5ePQukqzWgfD48g174 Wzqlz+DJ45mDqN3pcCmSEDseBWP7ejS2HlIV4H9UUDi972tgXuztNAMLhjJTbtcXdK1G PjtgSf+4LhodEiIKyvp9QKqSxWxjvgGwzR/vIWgStPVSOJOX5mmGVF1Bu+7xa1s8Zcx8 c6dRVRpT1NakCqu2n9dQkpU+qptZzVkFqUjPXTMHbFhKkKopizkYlHwMRZhUIN4a0/mZ FJjg==
- 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>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
From
https://unix.stackexchange.com/questions/411688/zsh-cant-input-to-terminal-when-piping-stdin-and-stdout-with-variable-command-t
$ echo | ps -j $(:) | cat | cat | cat
PID PGID SID TTY TIME CMD
4858 4858 4858 pts/4 00:00:02 zsh
23813 23813 4858 pts/4 00:00:00 zsh
23895 23895 4858 pts/4 00:00:00 ps
23896 23896 4858 pts/4 00:00:00 cat
23897 23897 4858 pts/4 00:00:00 cat
23898 23898 4858 pts/4 00:00:00 cat
See how they all run in different process groups (they should
all be in the same one, same job).
Note that the conditions to reproduce the problem seem to be
quite specific:
- the first pipeline component must be a builtin or compound command
- the second component must have a command substitution in the
arguments (OK when in targets of redirections).
(tested with git head on Debian amd64)
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author