mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-08-09 18:31:31 +02:00
ui: "guix help" silently ignores EPIPE.
This avoids a backtrace when running "guix help | head" or similar. * guix/ui.scm (run-guix): Wrap 'show-guix-help' calls in 'leave-on-EPIPE'.
This commit is contained in:
+2
-2
@@ -2134,7 +2134,7 @@ and signal handling have already been set up."
|
||||
(G_ "guix: missing command name~%"))
|
||||
(show-guix-usage))
|
||||
((or ("-h") ("--help"))
|
||||
(show-guix-help))
|
||||
(leave-on-EPIPE (show-guix-help)))
|
||||
((or ("-V") ("--version"))
|
||||
(show-version-and-exit "guix"))
|
||||
(((? option? o) args ...)
|
||||
@@ -2145,7 +2145,7 @@ and signal handling have already been set up."
|
||||
(apply run-guix-command (string->symbol command)
|
||||
'("--help")))
|
||||
(("help" args ...)
|
||||
(show-guix-help))
|
||||
(leave-on-EPIPE (show-guix-help)))
|
||||
((command args ...)
|
||||
(apply run-guix-command
|
||||
(string->symbol command)
|
||||
|
||||
Reference in New Issue
Block a user