From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28298 invoked by alias); 15 Apr 2018 16:23:34 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42651 Received: (qmail 25893 invoked by uid 1010); 15 Apr 2018 16:23:34 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr0-f179.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.128.179):SA:0(-1.9/5.0):. Processed in 1.092047 secs); 15 Apr 2018 16:23:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wjSoMRRtedl/4j19Jtt6dWGy/bI/rHLOhWL1xmpFCUo=; b=KdJYP46YbKmxddNzDLv+BbpaNxt/HQsdY33p6miU5DEOqQE+0IsWu0tqTOk6UwW2Z8 rOfeQFV9LhrLJJqVBS+kgbd37MJqtguuA+zOM9ashtp9WFFpWGfrRJgEycclr7XI46mb I9pJdDQa9gJaf3npfPOIEYy1SVvbFeoqNNZO1VdjqAcW35+ROWv52CJwQGRraHNMrJcn NW6S7w6wQEW2CwzMzBvnA9sGS26DmvI/l7NRaNm5j5vJT5oZ12W7H4IFrZV4UFv0Qpio JvmcLl8ngJHYja3FAVL8Elsujab8Fr55a32x5WCdP0yFaQb1wRFSAvRTgRJ8cpaZT/3m oPOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=wjSoMRRtedl/4j19Jtt6dWGy/bI/rHLOhWL1xmpFCUo=; b=cECtgy6HoQiJzyrmj+I+7g6mlK6rYhx2Ahz6129av6pP81rtLPQyod5Dbg/PK4WrV9 Z8gui4287I8NIrXBdWxjeQvC15fgJDNpzMgjHalHvxUgxwCGppqZpQdSmC6msuStjocb PGaaM9Q0kH+1VY3sWgpHZ1h6Qt5BvVFK0zyQGGF7evETMCaRjU2NVMWZXiHaB8v+fD0s 4Ov7XdBbzBVQsuIxaUgh8zuJKuhyJnTbUG1f794zKtzn1x3B9QTZnebttk0FljiabKWu agarCN9CVZkIOZRJQfj87rM8KB2byDQUdLC28poO76TJeLLkn9bq+bmaqGgr7R77owqm Poag== X-Gm-Message-State: ALQs6tDRR09aFN7sE+MfwugyVqG9xnjJz1RnJFLB1UvlMW2Kl0yzAef2 yDz4Bji/lz3KJ3iNR7lAnZQ= X-Google-Smtp-Source: AIpwx4/1TZ6alZXGLbk5QmaCfxWPyGM7pu0+XpFWZQjCHqgHfYMXqzpY9jDbrQEOYTmhVmhrg7nI6Q== X-Received: by 10.28.118.8 with SMTP id r8mr8694103wmc.5.1523809408700; Sun, 15 Apr 2018 09:23:28 -0700 (PDT) Date: Sun, 15 Apr 2018 17:23:26 +0100 From: Stephane Chazelas To: Peter Stephenson Cc: Zsh hackers list Subject: Re: "echo | ps -j $(:) | cat | cat | cat" runs components in different process groups Message-ID: <20180415162326.GA12549@chaz.gmail.com> Mail-Followup-To: Peter Stephenson , Zsh hackers list References: <20180323161612.GB4857@chaz.gmail.com> <180323163614.ZM10192@torch.brasslantern.com> <180323221959.ZM27569@torch.brasslantern.com> <20180324080514.txxyrb3qiztu4pqt@gmail.com> <180324150945.ZM32251@torch.brasslantern.com> <20180410124545.13fccd5d@camnpupstephen.cam.scsc.local> <20180410145926.64c4f671@camnpupstephen.cam.scsc.local> <180411151025.ZM19332@torch.brasslantern.com> <20180412172342.52df6b10@camnpupstephen.cam.scsc.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180412172342.52df6b10@camnpupstephen.cam.scsc.local> User-Agent: Mutt/1.5.24 (2015-08-30) 2018-04-12 17:23:42 +0100, Peter Stephenson: [...] > So I think this is a definite improvement, though it's probably not safe > enough to sneak into 5.5.1. [...] Thanks, that's definitely an improvement indeed. There are still a few problems. For instance, it takes 3 ^C to interrupt: sleep 10 $(sleep 11) | sleep 12 $(sleep 13) | sleep 14 $(sleep 15) | sleep 16 $(sleep 17) The first one kills "sleep 11" (running in the shell's process group), after which "sleep 10" and "sleep 13" start, the second kills "sleep 10", the 3rd kills "sleep 13" and the command seems to be aborted (sleep 12 and sleep 14 are not started for some reason). ^Z still causes an unrecoverable dead-lock (the shell reading the output of a suspended "sleep 11"). Also note that echo $(sleep 10) & echo started Only outputs "started" after 10 seconds. sleep 10 | echo $((+)) | cat still starts a pseudo-background job. -- Stephane