Subject: [bug#66499] [PATCH v2 17/39] scripts: import: Handle EPIPE errors when displaying help.

From: Simon Tournier <[email-masked]>
Date: Mon, 16 Oct 2023 19:29:35 +0200

* guix/scripts/import.scm (%options): Handle EPIPE errors when displaying help.
---
 guix/scripts/import.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/scripts/import.scm b/guix/scripts/import.scm
index 4ddd8d46a1..1e8ffd25ec 100644
--- a/guix/scripts/import.scm
+++ b/guix/scripts/import.scm
@@ -78,7 +78,7 @@ (define-command (guix-import . args)
      (format (current-error-port)
              (G_ "guix import: missing importer name~%")))
     ((or ("-h") ("--help"))
-     (show-help)
+     (leave-on-EPIPE (show-help))
      (exit 0))
     ((or ("-V") ("--version"))
      (show-version-and-exit "guix import"))
-- 
2.38.1