From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qCwvC294oGKEIgAAbAwnHQ (envelope-from ) for ; Wed, 08 Jun 2022 12:22:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qIcLC294oGKRpgAAauVa8A (envelope-from ) for ; Wed, 08 Jun 2022 12:22:39 +0200 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 A478538F95 for ; Wed, 8 Jun 2022 12:22:38 +0200 (CEST) Received: from localhost ([::1]:52132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyspf-0007Lv-Jz for larch@yhetil.org; Wed, 08 Jun 2022 06:22:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nysp8-0007Lk-UZ for guix-patches@gnu.org; Wed, 08 Jun 2022 06:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nysp8-0006jW-M8 for guix-patches@gnu.org; Wed, 08 Jun 2022 06:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nysp8-00070l-FW for guix-patches@gnu.org; Wed, 08 Jun 2022 06:22:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55845] [PATCH 0/1] Improve pager selection logic when less is not installed Resent-From: Taiju HIGASHI Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Jun 2022 10:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55845 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55845@debbugs.gnu.org Cc: Taiju HIGASHI X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165468370626926 (code B ref -1); Wed, 08 Jun 2022 10:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jun 2022 10:21:46 +0000 Received: from localhost ([127.0.0.1]:42523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nysos-00070D-7m for submit@debbugs.gnu.org; Wed, 08 Jun 2022 06:21:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:59608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nysor-000706-2L for submit@debbugs.gnu.org; Wed, 08 Jun 2022 06:21:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nysoq-0007Ij-Am for guix-patches@gnu.org; Wed, 08 Jun 2022 06:21:44 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:36668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nysok-0006fF-4y for guix-patches@gnu.org; Wed, 08 Jun 2022 06:21:44 -0400 Received: by mail-pl1-x636.google.com with SMTP id u18so17264029plb.3 for ; Wed, 08 Jun 2022 03:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=taiju-info.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iwBz59qsART4lGuQS4feCfWBA8Q48c2oAFlNvRgZCFA=; b=lnaKkmQmuvgx5XYbmfEPQ72RYdaBf33QwmHpFtSeqJXV+rPzCaacJWKh9FOJifmJTz tUGpElatF5tSbcO6UwdmRE/N69oc5Rx/WM6fpqJ2v+3rdjJQ5QULIPIw2OGcpxm2G1jD VbFra3GJvtgp8jhwll9CLwQZYdGv6jDbFFhj7p4I2C6Ux0rqAFvfzTQZw5RUzqM/GcZO jPO+U4ym1zc5RFy3OsnBgWCFbMi6Qde8Wh8aFi4cDrGVf9IzW+NaXQt2Dupdh+6dJU4q 1Gq+KcD+QLwFFgKHRrN0ITvODE/n9BF4o2EnW2Kw6PB/X7W76V9YlhLl5AqL2r0tBa6F UYOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iwBz59qsART4lGuQS4feCfWBA8Q48c2oAFlNvRgZCFA=; b=dBtSXo2Ycpfw4jw1kEzE5NAHKnDppwfI8LNiPQb9VGCy6S2g42xWXDaJkueTM6Jjrh aWRBfNH8V+q9bEfRTT7mTRrcjZHtlzJCgJ9yNhqlmPCxVZLC5zs9bgqhyoFB8YENumdl nRsExFmXCOgkrMB2YLsJFYgywj2EdVCf/tq0J4Hq88DE54yXB+vM8EbJnju43+UMk6jT 0Lzcyb8xuLM9SDdLcOMnmKYmEaI1bU49pKBnT1x6/FgB8Ik9g2ipq1l9E4ckzpBeYJ8z 66ZsQ3rDsoYKNdgtu/5Nfiyqv0lkjtq8miyYtF8TVO5z8R1St3txraMjsqmsHUk8JG1D ERug== X-Gm-Message-State: AOAM531QN8Iu3fov5522KZLKuT9C0IIF58l84niymAdEWvDEEkIG0XHq rdATDsSss38sc6tjc3jJzpPCfQPkYGuAjkdE X-Google-Smtp-Source: ABdhPJxOTnw2Svk875PI/oozlGxuyYsHwGKcx8tqkw+iI7dbu+lzlFGr9EBaZJg+sSggS8Ng2iv2qA== X-Received: by 2002:a17:902:e892:b0:167:4570:32e3 with SMTP id w18-20020a170902e89200b00167457032e3mr27281160plg.51.1654683694103; Wed, 08 Jun 2022 03:21:34 -0700 (PDT) Received: from Taix.flets-west.jp ([240b:253:ec40:2400:b7d1:436e:2d61:e925]) by smtp.gmail.com with ESMTPSA id e16-20020a056a0000d000b0050dc762819bsm14665851pfj.117.2022.06.08.03.21.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 03:21:33 -0700 (PDT) From: Taiju HIGASHI Date: Wed, 8 Jun 2022 19:21:24 +0900 Message-Id: <20220608102124.14865-1-higashi@taiju.info> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=2607:f8b0:4864:20::636; envelope-from=higashi@taiju.info; helo=mail-pl1-x636.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654683758; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=iwBz59qsART4lGuQS4feCfWBA8Q48c2oAFlNvRgZCFA=; b=Unawc+heWRi9PoVSTkAd/UDNMu+DskhcEjM7p5q5UfFJ5uoyOclLOJf8PyVWZ30iILdCBV P5dyh/Fujyu3yUSTrxVur4JL6uHz7jXMfkZ57o5JSmFwA9vKl4wkrWDq106Tf546Vxl8+R IsY9iM/StPxQy8j4klVBttMbbjXWHGe7z4lFbVonRO2Vu6xDuvOeNeOdyErNyZ78s6J3Qd mWIRjjOlFNJ+OlqekPP1nXd1AYzWfxQHV2ZlW9WMMOcTKGC36D0Nvx5FRkltbXM0JLogcF Hx04q0LIU5r7di+sO1HyGWZo8Nk5dkrDN1kjbpYJIIwAYm0w9a8q8PPudvNrbw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654683758; a=rsa-sha256; cv=none; b=b7+gWe3eJkwkWf5id2VOepVHAOh2C3yIaUhpu/nwQJVi/RDVso0QksUlwPUnUwgykiFVbP MTD/0Y4d93qkON7zFiuZ8kzB5hplrdxWSlFVIfhnzibXpd5PKcnfWVVrPuan4G5cUX5LiS 6xQ9xnq5NNF+XzYaqlw3ra0DBsW3G/vjiuMv2X77lhaIBqewyw2iGrlcOpI14VU38gnLr2 19VJejwW0ptoWnZT8plQJ6sjyme+uwHThGLARM6SuAMV3Cm4xUfzS5kE9t3+CcD81CjsBu k1LxV3ZyFO1NXN721p37vd96AEx4iYVbqjzM7OZBfXUDqQ3PLpzDHOQ4ePUdYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=taiju-info.20210112.gappssmtp.com header.s=20210112 header.b=lnaKkmQm; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=taiju-info.20210112.gappssmtp.com header.s=20210112 header.b=lnaKkmQm; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A478538F95 X-Spam-Score: 3.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: KT65bEuviI3F Hi, The problem rarely occurs, but when we run guix commands in an environment where "less" is not installed we get an error. This is the same problem reported at the following URL https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012405 If "more" could be specified as an alternative program to "less", the problem would be less likely to occur at least in a POSIX environment. Also, I would like to avoid using the pager in special environments where "more" is not installed at all. I have written a patch to solve the above. I am concerned about performance degradation due to more unnecessary processing. If you have another good solution, please let me know. Also, if you feel that this is a minor issue and not worth addressing, please feel free to dismiss it. (Still, a fix to make the error message more friendly might be a good idea.) Best Regards, Taiju HIGASHI (1): ui: Improve pager selection logic when less is not installed. guix/ui.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- 2.36.1