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 10289 invoked from network); 30 Sep 2021 19:22:49 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 30 Sep 2021 19:22:49 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1633029769; b=hADaM6p0sgKqvi7tUa+bxlrsiZIPb7lLtlHZUzh6beElPFmyAOxc5SUEBMG3tif3P+rspBc2NY CToskdovbnmREq7GTTgV/zsZ1DOR3zQJkW8jXXwuL+II4LyChYlPXuY5S2X9LfbwZMFW7UYV4o Y73cRRkzjiOayvYsVO9rHzE1v8G2NoEviQJymLRD9juDXP4jotODMb2YmOknJMKLvVTVuR4oul vCWnzclI8Mu/xa2Jwox4caYGTkgiUR9OX5o1lrjARv3h/UgMOmqVi96IRo/76pSyOPq6XEcJ96 5S2ypcx91PrkPrHQmyWc/qy8wm6dNh7He9KejzZ0uKYpQA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; 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=1633029769; bh=F1ZWCTNiJY/+qwqqa1u8zvIZkcJgCdU9kdJLJbT4y2A=; 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=DsPH8wb8XyYgznYOwACNt2zgT/Z3IoJG4KkWqQzhioDYUDLryojF9I/6tEspaHU8KVdVzTYUEj eAxRcWh9Mg1KBnMZWu26SLXC6bMAfD85gYbb5VtHbgS9nO2GOWAP6mjRpanOiT8JG+wqYRi+Nz 2IPZDyjD5ghD9FNzYgEV/DtLByPA3juU1TIl7QCqcxkfz+rbphudvQar0DKiA8zFvyq8ymLRpz CfvA5tXuTUwyqJAwX8GyzIy2PjgCaxbtBxu4/RvtMFQ6JFcIBjYidWeZWpfjTDooTvFyRNHVKC 10AqubKnImwsFffMEdrAvzWi/Wyx5oJKGEgfHNpufDTSRQ==; 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=ltRMqgMc+KvsPpdK8Hka3FpTkue8rRQMZlmwZ6cGZQI=; b=JqnIG/XIVUKfZJCb2yd2o4DLN7 mouQkpSG2jUO6b5puRlGpLHPz/o9iUpGnHxuDwrUrBv8a/yARAxMqogfVOI8YFj9sLknP8Urjmupv Vm5comAx74PDOaZ4vqqwnqOjbcMOBWoFP1DQH9yLBYQtrLDuc/kQRDD3PHUCHD9ht4f0sYjQb/clp kC/ErNh9/9GV///eOYunRPOIzonsW2k9vPe4RqFqWdallY8oJZB0PUhhLNcsBASDzsIP6uLdd543G 4be1txu2MZ75JKYW+z92Qdl5yiAD+bB+gltYRbZNvD0yi4GOoVJXoDDA8oHNOtLYdN8UsDqVV2dVN ug+wmDQw==; Received: from authenticated user by zero.zsh.org with local id 1mW1do-000DAg-RM; Thu, 30 Sep 2021 19:22:48 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:35306) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mW1dE-000CRJ-PU; Thu, 30 Sep 2021 19:22:13 +0000 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 76F8A27A; Thu, 30 Sep 2021 21:22:12 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 80AF3C2121B; Thu, 30 Sep 2021 21:22:11 +0200 (CEST) Date: Thu, 30 Sep 2021 21:22:11 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: less with subprocess Message-ID: <20210930192211.GB1641202@zira.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: <20210927233143.GA16620@gmx.de> <20210928185230.GA7495@gmx.de> <20210929130217.GB25513@cventin.lip.ens-lyon.fr> 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+60 (d7d7b4b3) vl-138565 (2021-09-13) X-Seq: 27186 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-29 10:56:30 -0700, Bart Schaefer wrote: > On Wed, Sep 29, 2021 at 7:47 AM Pier Paolo Grassi wrote: > > > > LF () { () { cat >|$1 &! less $1 ; kill $! } =(:) } > > > > find | LF > > > > unfortunately when hitting F then ctrl-c in less the find process is immediately killed > > You can get around that with > > LF <<(find) This is much worse! Ctrl-C then [End] yields zsh: suspended (tty input) then "fg" makes the terminal unusable. > There could be some more failsafe stuff in "LF". For example if you > accidentally invoke it with stdin still connected to the terminal > instead of to a pipe, "cat" will be stopped with SIGTTIN and left > lurking. The above issue? -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)