From patchwork Mon Oct 16 17:29:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 54919 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 A175327BBEA; Mon, 16 Oct 2023 18:34:27 +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=ham 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 2F7B827BBE2 for ; Mon, 16 Oct 2023 18:34:27 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsRRW-00051C-92; Mon, 16 Oct 2023 13:31:51 -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 1qsRRR-0004wC-Sv for guix-patches@gnu.org; Mon, 16 Oct 2023 13:31:45 -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 1qsRRR-00014l-Jt for guix-patches@gnu.org; Mon, 16 Oct 2023 13:31:45 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qsRRq-0004Lm-G1 for guix-patches@gnu.org; Mon, 16 Oct 2023 13:32:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66499] [PATCH v2 35/39] scripts: system: 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:10 +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.169747748016479 (code B ref 66499); Mon, 16 Oct 2023 17:32:10 +0000 Received: (at 66499) by debbugs.gnu.org; 16 Oct 2023 17:31:20 +0000 Received: from localhost ([127.0.0.1]:57937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsRR1-0004Hd-VH for submit@debbugs.gnu.org; Mon, 16 Oct 2023 13:31:20 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:38984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsRQb-0004BQ-7m for 66499@debbugs.gnu.org; Mon, 16 Oct 2023 13:30:53 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-406532c49dcso15539085e9.0 for <66499@debbugs.gnu.org>; Mon, 16 Oct 2023 10:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697477422; x=1698082222; 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=oC652IQuLS+MXfV68iS5QEQxZmzYjH3GnHHiLvejyOo=; b=T711Tvu2cGlT5nJPhvbW9c5LO+1D+zX00uysa9W5f01Oc35+fompLfkw92bUdQQBV4 NfVD3P1zQMd5ZDXjubUKFnqDGZ0hXWpHIEyX5tSq0mga/FMqdRxoYEMCMaSqAxjn3e3n qCKo2tzVzwTT2ddYafLbs+9JTAQOvPXCXx6zNcCN1r7RxcohLj2jbLTfEvqjh3jN4Ltg KZ98ug6fp6kinxANh0woUxNg3QFAAGtky4kCWJKCWGXrkxiadAkyPF6MHeXWpzZL949/ F0lGs0oafT52SdOoVnb23T9hgQ6QCx8vllEyN8DMb4PEmnIUFuwlPa8ec3wK9O47OfI+ AjFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697477422; x=1698082222; 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=oC652IQuLS+MXfV68iS5QEQxZmzYjH3GnHHiLvejyOo=; b=tRy8lN6l0Dq9Hc5GEpPPW5nsj/sUXEcZVMLk6ILmw3LleWAeDRmdcNDMtP1kQ+ZO+r 2SaZs8uNzk36zxAfhPx9kcLHLt0WKRdzCA+1KU8kUp1Il4XM9t6jMEL1mb4Xlr/9o9Io zagusdyXw6Wv3v9DfPf2eXWZpwvRK9cy+23mpHa0R0khUWS6vKuzrTEeYe7jPptDKzrh Ilc07KOKESwPUyFpJMG2d87REjEgM1JZ2ur/l3hNs3GVHbyBHlwwJWvkYpMuqxjedSVb ahKYZuv4It9c2t+jJAkEV6b/KWLTFXd0ggy13VDY+GQKEU/d29W/GHBw8UsdUpJcZlvS xQhg== X-Gm-Message-State: AOJu0YzC9rpq5XOINtJJDC+eEauzX3D5LTFahx8YcjhDYjLFxEh5JRkQ 4s1vYMnp1MnfRaPpYGg8nNSiHd6E7rg= X-Google-Smtp-Source: AGHT+IHu4vx8Ye/IgeScfaWIFq2BRyKqXYtvFKDQDx4nQQEh8jpKz9v6JFPto9opZ9DQozzz6MZskw== X-Received: by 2002:a05:600c:5114:b0:405:4127:f471 with SMTP id o20-20020a05600c511400b004054127f471mr30732861wms.1.1697477422609; Mon, 16 Oct 2023 10:30:22 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 10:30:22 -0700 (PDT) From: Simon Tournier Date: Mon, 16 Oct 2023 19:29:53 +0200 Message-Id: <9920ad79ac79e19999bb58f9b36f80fa4d351439.1697475790.git.zimon.toutoune@gmail.com> 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/system.scm (%options): Handle EPIPE errors when displaying help. --- guix/scripts/system.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 547387d5e1..f85b663d64 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -1064,7 +1064,7 @@ (define %options ;; Specifications of the command-line options. (cons* (option '(#\h "help") #f #f (lambda args - (show-help) + (leave-on-EPIPE (show-help)) (exit 0))) (option '(#\V "version") #f #f (lambda args