From patchwork Mon Oct 16 17:29:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 54917 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C6A8B27BBE2; Mon, 16 Oct 2023 18:34:23 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DB42B27BBE2 for ; Mon, 16 Oct 2023 18:34:22 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsRRO-0004pg-HT; Mon, 16 Oct 2023 13:31:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsRRL-0004ch-GW for guix-patches@gnu.org; Mon, 16 Oct 2023 13:31:39 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qsRRJ-0000yY-SZ for guix-patches@gnu.org; Mon, 16 Oct 2023 13:31:39 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qsRRi-0004JU-Od for guix-patches@gnu.org; Mon, 16 Oct 2023 13:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66499] [PATCH v2 15/39] scripts: hash: Handle EPIPE errors when displaying help. Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 Oct 2023 17:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66499 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66499@debbugs.gnu.org Cc: othacehe@gnu.org, Simon Tournier Received: via spool by 66499-submit@debbugs.gnu.org id=B66499.169747747016334 (code B ref 66499); Mon, 16 Oct 2023 17:32:02 +0000 Received: (at 66499) by debbugs.gnu.org; 16 Oct 2023 17:31:10 +0000 Received: from localhost ([127.0.0.1]:57899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsRQs-0004FI-0B for submit@debbugs.gnu.org; Mon, 16 Oct 2023 13:31:10 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:39247) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsRQR-00047p-Br for 66499@debbugs.gnu.org; Mon, 16 Oct 2023 13:30:45 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-406553f6976so15451985e9.1 for <66499@debbugs.gnu.org>; Mon, 16 Oct 2023 10:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697477413; x=1698082213; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ccHCzNr4njfN3yisknjYnomQBGEV9hZNePzfdQLg+xc=; b=JRrZXEgDWNOBCSqb0nDxpGGHN2UzBiy6Mu+UxKxv5oCzbq+AAw3Pi/Oq6MHKxJYenS A5MWnZSq5yr2e/YSgmsp1pibthypofxZcPizmfuMOAGEm/t3efQ9LZYUMfnY36oMM+yU idWaBKOeVJTTAVIdFV3XuR3kUkHsCNdrc8bAL0zb2ooP2Ms0hVLLXzbMBE6fpJOMHd5H j9eL5nO7q+Salo82afON08Gqqoq8bVOyazyYM+jviaaU+HknNIRiumwl4oAvZ+mTDC04 j/ZLL0vRLSlT41KrHlWab3iccS4idNCteMXENZWfHN8QpF6jyHwW+Erg5BzHgDerlsZn gmQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697477413; x=1698082213; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ccHCzNr4njfN3yisknjYnomQBGEV9hZNePzfdQLg+xc=; b=RsfnMWrH/apWndTS01yVFseME085VdaB4C6qAvYCcyHUIt7lzFWTd8PxCwHKnTNmGw Ccl++7CtF/h1qTL9JG3VUaxByUg+okBK0xylmWruXwNLaNw40ag761hrV+9aOb1o9SEQ X3w/myyBUF2poy2KS2uPc4tRlcUJANBx49QHlEU8cWANCZ9NpL3Y9csmZVYZThNuFSjM 8fTQXlwmbpaH84WGa0fLsf8bXEaIFvGumd/p0nmvoibuUk4lNTqINTYnEu8wv9WIHLt8 20w8GkhfsSLYSOUfiv2EU73LVV+VSBWi3R5B12Q/QagebBs960qzG7eNgDUGtWy5W70k FAZQ== X-Gm-Message-State: AOJu0Yx+a9uOZBNn8GDNJWWEqvbXMDvD1a98Al8g9JMZ+4Su+dbOa8jq 5w0zsbjz7heMfW9jzzRETQseO6vF2Dg= X-Google-Smtp-Source: AGHT+IEWyzAQYxVqyT+4KnZcy9gONQAqlL6P/S7CfEdOrZc9XoRh4EuJX6S1VBAnYScLrYj03kMBog== X-Received: by 2002:a05:600c:5114:b0:405:4127:f471 with SMTP id o20-20020a05600c511400b004054127f471mr30732437wms.1.1697477412773; Mon, 16 Oct 2023 10:30:12 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id g15-20020a05600c310f00b003fefaf299b6sm7674818wmo.38.2023.10.16.10.30.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 10:30:12 -0700 (PDT) From: Simon Tournier Date: Mon, 16 Oct 2023 19:29:33 +0200 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: <29fe44a94b28a6e9f1fc6cb12b6180ab1c4bdcb1.1697475790.git.zimon.toutoune@gmail.com> References: <29fe44a94b28a6e9f1fc6cb12b6180ab1c4bdcb1.1697475790.git.zimon.toutoune@gmail.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * guix/scripts/hash.scm (%options): Handle EPIPE errors when displaying help. --- guix/scripts/hash.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix/scripts/hash.scm b/guix/scripts/hash.scm index 6dc67a2416..7197d3965c 100644 --- a/guix/scripts/hash.scm +++ b/guix/scripts/hash.scm @@ -153,7 +153,7 @@ (define %options (alist-delete 'serializer result)))) (option '(#\h "help") #f #f (lambda args - (show-help) + (leave-on-EPIPE (show-help)) (exit 0))) (option '(#\V "version") #f #f (lambda args