From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2FxxNvvRw186GwAA0tVLHw (envelope-from ) for ; Sun, 29 Nov 2020 16:53:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WWkZMvvRw1/VPAAAbx9fmQ (envelope-from ) for ; Sun, 29 Nov 2020 16:53:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4C255940222 for ; Sun, 29 Nov 2020 16:53:15 +0000 (UTC) Received: from localhost ([::1]:52268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjPwo-0004pM-3o for larch@yhetil.org; Sun, 29 Nov 2020 11:53:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjPwd-0004pC-EV for guix-patches@gnu.org; Sun, 29 Nov 2020 11:53:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjPwc-0001ZU-09 for guix-patches@gnu.org; Sun, 29 Nov 2020 11:53:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kjPwb-0002eD-SX for guix-patches@gnu.org; Sun, 29 Nov 2020 11:53:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44663] ui: Launch $PAGER through the shell. References: <20201115184726.29944-1-me@tobias.gr> In-Reply-To: <20201115184726.29944-1-me@tobias.gr> Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Nov 2020 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44663 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44663@debbugs.gnu.org Received: via spool by 44663-submit@debbugs.gnu.org id=B44663.160666872810119 (code B ref 44663); Sun, 29 Nov 2020 16:53:01 +0000 Received: (at 44663) by debbugs.gnu.org; 29 Nov 2020 16:52:08 +0000 Received: from localhost ([127.0.0.1]:52389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjPvk-0002d8-JR for submit@debbugs.gnu.org; Sun, 29 Nov 2020 11:52:08 -0500 Received: from tobias.gr ([80.241.217.52]:38222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjPvj-0002d0-NJ for 44663@debbugs.gnu.org; Sun, 29 Nov 2020 11:52:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=CUKB2D/JNYDWLPpe59K5YtRn8vgCuILyAOD99OX+FvM=; h=date:subject:to: from; b=gYkDGNVZtEny8y/osLSm4a6c+qCyEEIN2O0/hBUhja8mwjmGp4niTNM0zbeJYg 9Z7PcHmULjFllKZAGypCkkfctbK3JMG2Kh0wx4iGCdsGd+qDQoJ1WiscUnSD11t4YMigRc ZJb+Vsahbwm1FBQVgbNq0tbzGcad8qyurBFs3nlKjE9TFzifB/weECWuIPaSvH21zIGs1b StkxcParXZqykVpOyUWLL68HQUgTILq64hJ6NPDxKmFDzkdS3dOOp21jPcohSkKqLIpIpv de2o2bpYrM5b2jr/ziGsOpbOeU/FGqJxhffb+klIiAYtS6nvALnP1NndMxsyCSuZ/dGeUw == Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id fea4dc4a (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO) for <44663@debbugs.gnu.org>; Sun, 29 Nov 2020 16:52:18 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; Date: Sun, 29 Nov 2020 17:52:05 +0100 Message-ID: <87blfgyukq.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Tobias Geerinckx-Rice , Tobias Geerinckx-Rice via Guix-patches From: Tobias Geerinckx-Rice via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.38 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=tobias.gr header.s=2018 header.b=gYkDGNVZ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-TUID: HgJBnt5eEc8w --=-=-= Content-Type: text/plain; format=flowed > I feel that going through the shell makes things more brittle I don't think it's brittle but it's icky. Using OPEN-PIPE is just the easiest way to get the shell to do free parsing for us. It also allows using pipes and for-loops in PAGER so I agree it's not ideal. Here's a v2 that does more work for less result, but feels less dirty :-) Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCX8PRtQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15SecBAKRIDfX3so6MXkoMVFoR+3sodq0sQIYnCzeMkRpK H6kXAQDyvNmSSyqd/irgHIL9fpvr7hJtJ3Fc7uwnQOGz3J4lBQ== =YkI8 -----END PGP SIGNATURE----- --=-=-=--