From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31686 invoked from network); 29 Sep 2021 13:03:16 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Sep 2021 13:03:16 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1632920596; b=dcQvp+Rod2uRRIxz3+hqz3/Z8NqgRGGdRYl4A8HZ+mqT9C1Dk6LhnNb5TdUTo6/WmLBtfi6xqV fV9Fjba1Z7u3mz5g5u0sRFqYqlXfheFZ6LaY7pxjz4QGv/qJcVdmV1xzTqzhvNZnQg3/2VNLii pOLOEHVtS3pUDKotpd/9G0BC3ECEEy2SOsKEGg6cu/jAUNiilu/X+lFdYIIaPqw3TXLN1DvLuJ p6RMEC2OTPDSI5qKX4sHvszFqHbyY97m5au30he1cGatxVMII8OGDUvMa+2m4DVGif1kgKQYtU JyL/xhMsy0lOOKd6b/L96S4mhEDxZkxxrgfCAiPwI/xt8A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1632920596; bh=bGWub+Tp0uHrL8O48idJYSVazmSzvQce+ZVbk2BIg1o=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=a8GPq7xZwuz1zxMZrZlkGnt5od/541+hLk70hfvnX0ysBmWEiHAZ6UFn60S2Fnsh09mMMhc3ui nUZT7F9Tddl2aomPPwORfH8sm0N0sdTDNLlmzyYjlR4BvYUZsy1v4nE12Okkf2Cx4EKgaUNVfh CSTS19V08bfXnzE0/XuNBquEVd/SswklkVWyixkwQxS+PWllDmEORbTdsQ6+e9hVJ07YNLtbVY z2ebqk3KO7tQizMGYps+fMAgnWzCP5GdB2NGdRk/MxB1DL1AlPXSXijpRPKmpMA/g5WbENSJku uRNnxV1iKavsuCWbsysCIkF6jkgEBnGx2fg00IW09wOOeg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=WqKtYwdcPV+9HgGnZ7EBhmlgi6xVFQYoG+lzYqGI7K8=; b=BqTo2GdojhH/yoh44XkT0++EOw f8qVj54NtsA67W1/sdhG37MU3TIZ5hHtESCfOAKpZx3ozgAGz4aVNXtTNU6ieVqyzwArmNYeJgcVt 08qhXWcIE9yH8H/7rzPV5kzcT3MmOmmakGIseTltfLOY8RrZbM85n+UjB/NDXHUPRpktuXvg1eZKK /DpedGpHPGZp+30LIDMIKUmvg17RXdkH6AEnGyaUHMgwPyBbPnkRQHdclnqBj5MFNv0uJACaRlMYr kr0PEI1DNRHypM0PYbkagEijzIfFdLj9G49EzfJ3kU+Lo+ZUye1vvEc/9Htv1TlQHzgexasQFhxiC tnZK7oEw==; Received: from authenticated user by zero.zsh.org with local id 1mVZEy-00068O-EA; Wed, 29 Sep 2021 13:03:16 +0000 Authentication-Results: zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:37712) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mVZE1-0005PY-OF; Wed, 29 Sep 2021 13:02:18 +0000 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.95-RC2) (envelope-from ) id 1mVZE1-0007IC-Id; Wed, 29 Sep 2021 15:02:17 +0200 Date: Wed, 29 Sep 2021 15:02:17 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: less with subprocess Message-ID: <20210929130217.GB25513@cventin.lip.ens-lyon.fr> Mail-Followup-To: zsh-users@zsh.org References: <20210927233143.GA16620@gmx.de> <20210928185230.GA7495@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.1.3+69 (769e5086) vl-138565 (2021-09-25) X-Seq: 27176 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 2021-09-28 12:29:31 -0700, Bart Schaefer wrote: > > Both do not work for me (zsh-5.7.1, less 487). The generating > > command is killed when ctrl-c is pressed for the first time > > There have been a few changes to subprocess signal handling since > 5.7.1. Most likely involved here is workers/49029. Even with zsh 5.8, this doesn't work. I get the following error: cventin% LF () { () { cat >$1 &! less $1 ; kill $! } =(:) } cventin% echo | LF (anon):kill: kill 27684 failed: no such process And cventin% (sleep 1; echo foo) | LF gives an empty file in "less", also with an error if I quit "less" after 1 second. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)