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, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31231 invoked from network); 27 Sep 2021 21:41:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Sep 2021 21:41:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1632778901; b=C0JHW47UyrDZTAWiafkImQvF9q4CLUs0KSsa6I9JkIbEaBfsdmW1chkJ/DwaBuDRXIDO79Ri7L sbLQdqcz5XDCETgN513beb+lfZKvuO4gqPtvZ1pt7fqb/E6WgZ0Ej/V5ZyTap9Z2A5QHhmxXUb DzWMp/wRVr5+nkPgkkdAEi9I/69MuVaqR5cSdhc9Ao9efnpsWSyEF/EaK1IiN3va1BTga0djZ+ e8/5EjE5YDcursmjJXH7ZdfJ0wZuXSONScK2PNLr/f0LaRrZQ7mQBiD3ojUlpu9SDOk6qfvAUZ JCZlrQnA3avf7cwHy3YapAjMaGgkbzs3joK6AsjV6xhcCA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.17.22; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.a=rsa-sha256; dmarc=none header.from=gmx.de; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1632778901; bh=gqpzpF6NX46IoqZIJ8RC2NoFmzxa6HJ/RytAQnEUxUA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:In-Reply-To:Content-Type: MIME-Version:References:Reply-To:Message-ID:Subject:To:From:Date: DKIM-Signature:DKIM-Signature; b=fC/iDeQ7Jx12j8EcCrFrjDoKru6PSO/YggNXK08vsQHorqKvbrTweQmlv7Rq+3QkqXy4G35oBf DczNTlsRU1qPpONctAqPFloXhJS9FcU3/0sVLPKfUHpxDSuDNfqNpL3wWNHw+TnhjFxt1F/dHJ WUk8RYYcpAGB+ZoM+kUYrBHT9kwBbc2FcCUEzAaNe4J8KslVZVpgtNGOOHZLxFLGoh/XYCDtuF qlR33e9K4YUOz8aCKcKyRb298P9H70q2SRPHfgQJLMEzdP4O+WLuDK2HwCZmG6XnImiAVBBvQF gXJFbbD7qfFKb1Xzw6VBU0DILSl7kk4TODO8UVXqqcfwZw==; 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:Content-Transfer-Encoding:In-Reply-To :Content-Type:MIME-Version:References:Reply-To:Message-ID:Subject:To:From: Date:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=Ul5p4E2idHDXRoQeVnLLdjuQgt1fCawRdYD7zBpVSxo=; b=YnnEunHjCI5/Sig9D6inxppVF7 RiN87DFuWzvfbghkSp/aZ2LSSwXV2PRCazc6ARqHqJMN7aarpFBBmWw0XcASntbQAlQkN6HStxz0I 2QYiaDITFvvtQ/nyGxE0SIiv4kKF/SgKIE5W2ibJvFkfvVD8rlcRUmyMoXvazT/0/9OD7uwJ6X2Gu iZ3/qoagtFJK/Ya4IN3GCXeHS8rW/mvGEYNrg5m9/22XxMURVzaV6WlmE/Cm+lK+C7fm45RmD7/hE 1gtnex7f3tXFJsGtDBvT1kL1XfgE0FNaipZFuxkxAmBMbDVSvJo7HDhS34ggeU/sa54RrDoCBaLWH aScjbJhQ==; Received: from authenticated user by zero.zsh.org with local id 1mUyNZ-00021H-7o; Mon, 27 Sep 2021 21:41:41 +0000 Authentication-Results: zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.17.22; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.a=rsa-sha256; dmarc=none header.from=gmx.de; arc=none Received: from mout.gmx.net ([212.227.17.22]:45505) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mUyMw-0001Ie-EM; Mon, 27 Sep 2021 21:41:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1632778861; bh=gqpzpF6NX46IoqZIJ8RC2NoFmzxa6HJ/RytAQnEUxUA=; h=X-UI-Sender-Class:Date:From:To:Subject:Reply-To:References: In-Reply-To; b=ei2BiIhtTtMWB5gzb3RbpMYvvn6qCiXrFsruhP+uczVi63p5G5iP8EALsawzjobTp NTvErlX8T/iPldFXCYZSekCoSODnJz8QVyS7U3jXmn5ZwirmfPnSfPD181S7Rclyhg r7i0EqGgQlAl65x/raBf9Vw6XAVRjBdmi+eF6UdQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from zitrone.obstwiese ([46.223.163.254]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MOA3F-1mBUc01NbF-00OVBh for ; Mon, 27 Sep 2021 23:41:01 +0200 Received: from luthien by zitrone.obstwiese with local (Exim 4.92) (envelope-from ) id 1mUyKt-000347-Fg; Mon, 27 Sep 2021 22:38:55 +0100 Date: Mon, 27 Sep 2021 22:38:55 +0100 From: Dominik Vogt To: zsh-users@zsh.org Subject: Re: less with subprocess Message-ID: <20210927213855.GA11582@gmx.de> Reply-To: dominik.vogt@gmx.de Mail-Followup-To: zsh-users@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Provags-ID: V03:K1:xI8ISzdzitbH/ywycBgVy8PNGK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7WIXtpKiLUWmYgL+iL6GEtrtParmei5k3P2E7sgYZJL4RhShdgau w/Ech0hDi4DK/E9jhBwB4/6gUFue5A9eiY6wkbPpdNLYBU8UMi/wmz1z0nM8ByTMN0i8kdwYG 6TIsKOvgkHjjyaN10ZAEcgTbSNgmO1fFdfM6LozjU6GzeuL2CfZ0w6DyhIkxF6eeKk7CqSYlo YgggSlgmVnUTlx5tFQ3Jo9J5pS+N4bChdJOX8qJcdb12At4ovYFOrPbMfgBw2ebW72voeC2JI abXiIpXBQgy+lI= Content-Transfer-Encoding: quoted-printable X-Seq: 27145 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 Mon, Sep 27, 2021 at 10:30:08PM +0200, Pier Paolo Grassi wrote: > Hello, I have something like this: > > less -f <(sleep 100) > > actually the sleep is a find which does not produce any output for a lon= g > time at times, but the result is pretty much the same: less doesn't seem= to > be able to initialize if it doesn't receive an input, so it can't respon= d > to sigint (ctrl-c), and I have to kill it from another shell > I use it like this so I am able to use ctrl-c and +F inside less to move > around in the output already received and receive the new input received= in > the meantime (with +F), so I would rather not us something like: I'm not sure I understand what your usability problem actually is, but to kill a less without input you can hit "ctrl-z" to put it in the background an kill it with "kill %". This will also kill the background pipe process if it's listening to signals. (I.e. a sleep will survive, but normal command won't.) Ciao Dominik ^_^ ^_^ =2D- Dominik Vogt