[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#66499] [PATCH] ui: Handle EPIPE errors when displaying Guix version
From: |
Simon Tournier |
Subject: |
[bug#66499] [PATCH] ui: Handle EPIPE errors when displaying Guix version. |
Date: |
Thu, 12 Oct 2023 15:39:03 +0200 |
Fixes <https://issues.guix.gnu.org/66254>.
Reported by Clément Lassieur <clement@lassieur.org>.
* guix/ui.scm (run-guix): Handle EPIPE errors when displaying version.
---
guix/ui.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Hi,
It appears to me a trivial patch that could directly could go be merged but
just in case I am not missing the obvious.
Cheers,
simon
diff --git a/guix/ui.scm b/guix/ui.scm
index 6f2d4fe245..507bc67f1d 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -2309,7 +2309,7 @@ (define (run-guix . args)
((or ("-h") ("--help"))
(leave-on-EPIPE (show-guix-help)))
((or ("-V") ("--version"))
- (show-version-and-exit "guix"))
+ (leave-on-EPIPE (show-version-and-exit "guix")))
(((? option? o) args ...)
(format (current-error-port)
(G_ "guix: unrecognized option '~a'~%") o)
base-commit: 1328c4cca531318e3ed90c6aecb522a5b22a4bcc
--
2.38.1
- [bug#66499] [PATCH] ui: Handle EPIPE errors when displaying Guix version.,
Simon Tournier <=
- [bug#66499] [PATCH v2 01/39] ui: Handle EPIPE errors when displaying Guix version., Simon Tournier, 2023/10/16
- [bug#66499] [PATCH v2 02/39] scripts: archive: Handle EPIPE errors when displaying help., Simon Tournier, 2023/10/16
- [bug#66499] [PATCH v2 06/39] scripts: copy: Handle EPIPE errors when displaying help., Simon Tournier, 2023/10/16
- [bug#66499] [PATCH v2 12/39] scripts: gc: Handle EPIPE errors when displaying help., Simon Tournier, 2023/10/16
- [bug#66499] [PATCH v2 03/39] scripts: build: Handle EPIPE errors when displaying help., Simon Tournier, 2023/10/16
- [bug#66499] [PATCH v2 04/39] scripts: challenge: Handle EPIPE errors when displaying help., Simon Tournier, 2023/10/16